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

CVE-2018-3772: Improper Input Validation

July 30, 2018 (updated October 9, 2019)

Concatenating unsanitized user input in the whereis npm module allows an attacker to execute arbitrary commands. The whereis module is deprecated and it is recommended to use the which npm module instead.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2018-3772 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 before 0.4.1

Fixed versions

  • 0.4.1

Solution

Upgrade to version 0.4.1 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/whereis/CVE-2018-3772.yml

Spotted a mistake? Edit the file on GitLab.

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

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