{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31712","published":"2021-04-24T21:15:07.490000Z","last_modified":"2026-06-17T03:52:10.473000Z","status":"Modified","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:react_draft_wysiwyg_project:react_draft_wysiwyg:*:*:*:*:*:node.js:*:*","part":"a","vendor":"react_draft_wysiwyg_project","product":"react_draft_wysiwyg","version_end_excluding":"1.14.6"}],"cpes_truncated":false,"vendors":["react_draft_wysiwyg_project"],"products":["react_draft_wysiwyg_project/react_draft_wysiwyg"],"epss":{"score":0.00792,"percentile":0.52985,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-qcg2-h349-vwm3","ecosystem":"npm","name":"react-draft-wysiwyg","purl":"pkg:npm/react-draft-wysiwyg","ranges":[{"introduced":"0","fixed":"1.14.6"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2021-31712/","html_en":"/en/cve/CVE-2021-31712/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31712","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31712"},"untrusted":{"vendor_name":"React Draft Wysiwyg Project","product_name":"React Draft Wysiwyg","desc_en":"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":[],"references":[{"url":"https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/issues/1102","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/jpuri/react-draft-wysiwyg/pull/1104","tags":["Patch","Third Party Advisory"]}]}}