All CVEs / Secure-compare Project
CVE-2015-9238Secure-compare Project Secure-compare
Medium 5.3 No auth needed
Follow: this CVE · Secure-compare Project · Secure-compare Project Secure-compare We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Secure-compare.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| secure-compare_project | secure-compare | < 3.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- nodesecurity.io Third Party Advisory