Description
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.
Metrics
CVSS 3.0 5.3/10
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | secure-compare node module | <=3.0.0 |
References
- https://github.com/vdemedes/secure-compare/pull/1Third Party Advisory
- https://nodesecurity.io/advisories/50Third Party Advisory
- https://github.com/vdemedes/secure-compare/pull/1Third Party Advisory
- https://nodesecurity.io/advisories/50Third Party Advisory
Timeline
- Published
- May 31, 2018
- Last modified
- Jun 17, 2026
- NVD status
- Modified