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

CVE-2018-6341: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

January 4, 2019 (updated January 8, 2021)

React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time.

References

  • github.com/advisories/GHSA-mvjj-gqq2-p4hw
  • nvd.nist.gov/vuln/detail/CVE-2018-6341
  • reactjs.org/blog/2018/08/01/react-v-16-4-2.html
  • snyk.io/vuln/npm:react-dom:20180802
  • twitter.com/reactjs/status/1024745321987887104
  • www.npmjs.com/advisories/1421

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

Version 16.0.0, all versions starting from 16.1.0 before 16.1.2, version 16.2.0, 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.0.1
  • 16.1.2
  • 16.2.1
  • 16.3.3
  • 16.4.2

Solution

Upgrade to versions 16.0.1, 16.1.2, 16.2.1, 16.3.3, 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')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/react-dom/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:15:19 +0000.