Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. react
  4. ›
  5. CVE-2018-6341

CVE-2018-6341: Cross-site Scripting

December 31, 2018 (updated October 9, 2019)

React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability.

References

  • nvd.nist.gov/vuln/detail/CVE-2018-6341
  • reactjs.org/blog/2018/08/01/react-v-16-4-2.html
  • twitter.com/reactjs/status/1024745321987887104

Code Behaviors & Features

Detect and mitigate CVE-2018-6341 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 16.0.0 before 16.0.1, all versions starting from 16.1.0 before 16.1.2, all versions starting from 16.2.0 before 16.2.1, all versions starting from 16.3.0 before 16.3.3, all versions starting from 16.4.0 before 16.4.2

Fixed versions

  • 16.4.2

Solution

Upgrade to version 16.4.2 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/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/CVE-2018-6341.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:59 +0000.