CVE-2015-9238
MEDIUM 5.3CVSS 3.0Insecure Comparison in secure-compare
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.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-134CWE-697
- Also known as
- GHSA-h9x2-5rm7-x4gm
- Sources
- NVDJSONOSV GHSA-h9x2-5rm7-x4gmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | secure-compare_project | secure-comparecpe:2.3:a:secure-compare_project:secure-compare:*:*:*:*:*:node.js:*:* |
< 3.0.1 | 3.0.1 |
| OSV | npm | secure-compare | < 3.0.1 | 3.0.1 |
References
- https://github.com/vdemedes/secure-compare/pull/1 · Third Party Advisory, WEB
- https://nodesecurity.io/advisories/50 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2015-9238 · ADVISORY
- https://github.com/vadimdemedes/secure-compare/commit/dd1ff1ac0122de7e0af4f00c61ed73261062394a · WEB
- https://www.npmjs.com/advisories/50 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Jun 2019)