{"id":"CVE-2021-31712","aliases":["CVE-2021-31712","GHSA-qcg2-h349-vwm3"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in React Draft Wysiwyg","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"react-draft-wysiwyg (también se conoce como React Draft Wysiwyg) versiones anteriores a 1.14.6, permite un URI javascript: en un Link Target del decorador de enlaces en el archivo decorators/Link/index.js cuando un borrador se comparte entre usuarios, conllevando a un ataque de tipo XSS","source":"nvd"}],"published":"2021-04-24T20:56:59.000Z","modified":"2026-06-17T03:52:10.473Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.6"}],"ecosystem":"npm","package":"react-draft-wysiwyg","purl":"pkg:npm/react-draft-wysiwyg","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.14.6"}],"vendor":"react_draft_wysiwyg_project","product":"react_draft_wysiwyg","cpe":"cpe:2.3:a:react_draft_wysiwyg_project:react_draft_wysiwyg:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jpuri/react-draft-wysiwyg/issues/1102","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/pull/1104","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31712","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31712","url":"https://www.cve.org/CVERecord?id=CVE-2021-31712","licence":"CVE Terms of Use","modified":"2024-08-03T23:03:33.794Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qcg2-h349-vwm3","url":"https://github.com/advisories/GHSA-qcg2-h349-vwm3","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:50.480Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31712","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31712","licence":"Public domain","modified":"2026-06-17T03:52:10.473Z"}],"updatedAt":"2026-11-25T22:58:01.027Z","epss":{"score":0.00792,"percentile":0.5752,"date":"2026-12-01T12:00:22.000Z"}}