{"id":"CVE-2021-31712","published":"2021-04-24T20:56:59Z","modified":"2024-08-03T23:03:33Z","title":"react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a javascript: URi in a Link Target of the link…","vendor":null,"product":null,"tier":"tail","description":{"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 to XSS.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00792,"percentile":0.52925,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/jpuri/react-draft-wysiwyg/issues/1102","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/pull/1104","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":10.59}]},"affected":[{"ecosystem":"npm","package":"react-draft-wysiwyg","vulnerableRanges":["<1.14.6"],"patched":["1.14.6"],"from":["GHSA-qcg2-h349-vwm3"],"provenance":"source"}],"summary":{"text":"The flaw is in the Link decorator (decorators/Link/index.js) of react-draft-wysiwyg, a React rich-text editor component, where a javascript: URI is accepted as a link target. An attacker who can get a crafted draft shared with other users can trigger cross-site scripting in those users' sessions, provided the affected versions (before 1.14.6) are in use and the shared draft is rendered in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:36Z"},"euvd":{"id":"EUVD-2021-1166","exploited":false,"provenance":"source"}}