{"cve":"CVE-2021-31712","nvd":{"published":"2021-04-24T21:15:07.490","modified":"2026-06-17T03:52:10.473","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-79"],"references":["https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380","https://github.com/jpuri/react-draft-wysiwyg/issues/1102","https://github.com/jpuri/react-draft-wysiwyg/pull/1104","https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380","https://github.com/jpuri/react-draft-wysiwyg/issues/1102"],"products":["react_draft_wysiwyg_project:react_draft_wysiwyg"],"source":"nvd","synced_at":"2026-10-19T21:17:01.373894544+00:00"},"epss":{"cve":"CVE-2021-31712","score":0.00792,"percentile":0.5635,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qcg2-h349-vwm3","url":"https://osv.dev/vulnerability/GHSA-qcg2-h349-vwm3","summary":"Cross-site Scripting in React Draft Wysiwyg","modified":"2023-11-08T04:05:50.480506Z","packages":[{"ecosystem":"npm","name":"react-draft-wysiwyg","purl":"pkg:npm/react-draft-wysiwyg","ranges":["<1.14.6"],"fixed":["1.14.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}