Vulnerability · Published Apr 24, 2021 · Assigned by mitre
CVE-2021-31712
Medium 5.4
In plain English
A medium-severity security flaw in the react-draft-wysiwyg package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.4Medium
Exploit odds (30 days)0.8%top 43.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | react-draft-wysiwyg | 1.14.6 | GHSA-qcg2-h349-vwm3 |
Affected products (as reported)
References
- https://github.com/jpuri/react-draft-wysiwyg/issues/1102 x_refsource_MISC
- https://github.com/jpuri/react-draft-wysiwyg/pull/1104 x_refsource_MISC
- https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380 x_refsource_CONFIRM