CVE-2025-3191 React Draft Wysiwyg Cross-Site Scripting (XSS) via the Embedded Button
Attackers can inject malicious scripts via the Embedded button in react-draft-wysiwyg, leading to Cross-site Scripting attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-3191?
CVE-2025-3191 is a medium-severity cross-site scripting vulnerability in react-draft-wysiwyg, published on 4 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
All versions of the package react-draft-wysiwyg are vulnerable to Cross-site Scripting (XSS) via the Embedded button which will then result in saving the payload in the <iframe> tag.
Weakness: CWE-79
Which versions are affected by CVE-2025-3191?
2 open source packages ship an affected version, including react-draft-wysiwyg.
| Package | Affected | Fixed in |
|---|---|---|
react-draft-wysiwyg npm | All versions to 1.15.0 | None |
react-draft-wysiwyg npm | All versions to 1.15.0 | None |
How do I fix CVE-2025-3191?
No fix has been published for CVE-2025-3191 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-3191 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3191 exists.
Sources
Also known as GHSA-fq5x-7292-2p5r.