CVE-2021-31712 json
Cross-site Scripting in React Draft Wysiwyg
published 2021-04-24 5 y ago modified 2026-06-17 4 mo ago also GHSA-qcg2-h349-vwm3 , EUVD-2021-1166
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a javascript: URi in a Link Target of the link decorator in decorators/Link/index.js when a draft is shared across users, leading to XSS.
Patch / fix
- npm react-draft-wysiwyg 1.14.6
- react_draft_wysiwyg_project react_draft_wysiwyg 1.14.6
Exploit prediction
0.79% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jpuri/react-draft-wysiwyg/issues/1102 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | react-draft-wysiwyg | <1.14.6 |
1.14.6 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/jpuri/react-draft-wysiwyg/pull/1104
web, patch, third-party-advisory
-
github.com
/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380
web, patch, third-party-advisory
-
github.com
/jpuri/react-draft-wysiwyg/issues/1102
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-31712
advisory
Sources
- CVE List CVE-2021-31712
- GitHub Advisory GHSA-qcg2-h349-vwm3
- NVD CVE-2021-31712
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.