Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. secure-compare
  4. ›
  5. CVE-2015-9238

CVE-2015-9238: Use of Externally-Controlled Format String

June 3, 2019 (updated January 8, 2021)

secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.

References

  • github.com/advisories/GHSA-h9x2-5rm7-x4gm
  • github.com/vdemedes/secure-compare/pull/1
  • nodesecurity.io/advisories/50
  • nvd.nist.gov/vuln/detail/CVE-2015-9238
  • www.npmjs.com/advisories/50

Code Behaviors & Features

Detect and mitigate CVE-2015-9238 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 3.0.1

Fixed versions

  • 3.0.1

Solution

Upgrade to version 3.0.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-134: Use of Externally-Controlled Format String

Source file

npm/secure-compare/CVE-2015-9238.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:40 +0000.