Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. react-draft-wysiwyg
  4. ›
  5. CVE-2021-31712

CVE-2021-31712: Cross-site Scripting

April 24, 2021 (updated September 9, 2021)

react-draft-wysiwyg (aka React Draft Wysiwyg) 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.

References

  • github.com/jpuri/react-draft-wysiwyg/issues/1102
  • nvd.nist.gov/vuln/detail/CVE-2021-31712

Code Behaviors & Features

Detect and mitigate CVE-2021-31712 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.14.6

Fixed versions

  • 1.14.6

Solution

Upgrade to version 1.14.6 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/react-draft-wysiwyg/CVE-2021-31712.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:25 +0000.