Live threats

All CVEs / Secure-compare Project

CVE-2015-9238Secure-compare Project Secure-compare

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
1.4%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
May 31, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-697, CWE-134
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Secure-compare.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm secure-compare < 3.0.1 3.0.1 npm install secure-compare@3.0.1

Per OSV / GitHub Advisories (GHSA-h9x2-5rm7-x4gm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
secure-compare_projectsecure-compare< 3.0.1

Official sources

References

Links published by the sources. Open them with care.