{"id":"GHSA-qcg2-h349-vwm3","summary":"Cross-site Scripting in React Draft Wysiwyg","details":"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.","aliases":["CVE-2021-31712"],"modified":"2023-11-08T04:05:50.480506Z","published":"2021-05-06T15:52:35Z","database_specific":{"nvd_published_at":"2021-04-24T21:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-04-26T18:46:48Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31712"},{"type":"WEB","url":"https://github.com/jpuri/react-draft-wysiwyg/issues/1102"},{"type":"WEB","url":"https://github.com/jpuri/react-draft-wysiwyg/pull/1104"},{"type":"WEB","url":"https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380"}],"affected":[{"package":{"name":"react-draft-wysiwyg","ecosystem":"npm","purl":"pkg:npm/react-draft-wysiwyg"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.14.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-qcg2-h349-vwm3/GHSA-qcg2-h349-vwm3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}