medium5.4
CVE-2021-31712
Cross-site Scripting in React Draft Wysiwyg
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | react-draft-wysiwyg | < 1.14.6 | 1.14.6 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| React Draft Wysiwyg Project | React Draft Wysiwyg | before 1.14.6 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380
- https://github.com/jpuri/react-draft-wysiwyg/issues/1102
- https://github.com/jpuri/react-draft-wysiwyg/pull/1104
- https://github.com/advisories/GHSA-qcg2-h349-vwm3
- https://nvd.nist.gov/vuln/detail/CVE-2021-31712