Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.4
CVE-2021-31712: React Draft Wysiwyg 1.14.6 or earlier allows malicious links in shared content
CVE-2021-31712 · published 5 years ago
Summary
A security risk exists in older versions of React Draft Wysiwyg when shared content is used, potentially allowing an attacker to execute malicious code. This can happen when editors share drafts with users, who can then click on a link that contains malicious JavaScript code. To protect your users, update to version 1.14.6 or later.
What to do
- Update jyotipuri react-draft-wysiwyg to version 1.14.6.
- Update react_draft_wysiwyg_project react_draft_wysiwyg to version 1.14.6 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | jyotipuri | react-draft-wysiwyg |
< 1.14.6 Fix: upgrade to 1.14.6
|
| – | react_draft_wysiwyg_project | react_draft_wysiwyg |
< 1.14.6 cpe:2.3:a:react_draft_wysiwyg_project:react_draft_wysiwyg:*:*:*:*:*:node.js:*:* |
Original advisory text
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 ...
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.
References
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published24 Apr 2021
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta