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

CVE-2018-6342: Cross-Site Request Forgery (CSRF)

December 31, 2018 (updated October 9, 2019)

react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system.

References

  • nvd.nist.gov/vuln/detail/CVE-2018-6342

Code Behaviors & Features

Detect and mitigate CVE-2018-6342 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 1.0.0 before 1.0.4, all versions starting from 2.0.0 before 2.0.2, all versions starting from 3.0.0 before 3.1.2, all versions starting from 4.0.0 before 4.2.2, all versions starting from 5.0.0 before 5.0.2

Fixed versions

  • 1.0.4
  • 2.0.2
  • 3.1.2
  • 4.2.2
  • 5.0.2

Solution

Upgrade to versions 1.0.4, 2.0.2, 3.1.2, 4.2.2, 5.0.2 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/react-dev-utils/CVE-2018-6342.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:59 +0000.