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

GMS-2015-38: Insecure Comparison

October 24, 2015

Secure-compare does not actually compare two strings properly. compare actually compares the first argument with itself, meaning the check passes for any two strings of the same length.

References

  • github.com/vdemedes/secure-compare/pull/1

Code Behaviors & Features

Detect and mitigate GMS-2015-38 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 up to 3.0.0

Solution

Upgrade to secure-compare 3.0.1 or greater.

Source file

npm/secure-compare/GMS-2015-38.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:57 +0000.