CVE-2021-31712
MEDIUM 5.4CVSS 3.1Cross-site Scripting in React Draft Wysiwyg
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.
- Published
- 24 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-qcg2-h349-vwm3
- Sources
- NVDJSONOSV GHSA-qcg2-h349-vwm3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | react_draft_wysiwyg_project | react_draft_wysiwygcpe:2.3:a:react_draft_wysiwyg_project:react_draft_wysiwyg:*:*:*:*:*:node.js:*:* |
< 1.14.6 | 1.14.6 |
| OSV | npm | react-draft-wysiwyg | < 1.14.6 | 1.14.6 |
References
- https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380 · Patch, Third Party Advisory, WEB
- https://github.com/jpuri/react-draft-wysiwyg/issues/1102 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/jpuri/react-draft-wysiwyg/pull/1104 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31712 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 24 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2021)