{"id":"CVE-2015-9238","aliases":["EUVD-2019-0540","GHSA-h9x2-5rm7-x4gm"],"status":"published","title":"Insecure Comparison in secure-compare","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.","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01477,"percentile":0.74045,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-134","CWE-697"],"published":"2018-05-31T20:00:00Z","modified":"2026-06-17T00:36:06Z","exploits":[{"source":"pocgithub","id":"m0d0ri205/wargame-turkey_in_2","title":"m0d0ri205/wargame-turkey_in_2","date":"2024-11-24","url":"https://github.com/m0d0ri205/wargame-turkey_in_2"}],"fixes":[{"ecosystem":"npm","package":"secure-compare","fixed_in":["3.0.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"secure-compare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1"}]}]},{"source":"osv","ecosystem":"npm","package":"secure-compare","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.1"}]}]}],"products":[{"vendor":"hackerone","product":"secure-compare node module"},{"vendor":"secure-compare_project","product":"secure-compare"}],"references":[{"url":"https://github.com/vdemedes/secure-compare/pull/1","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nodesecurity.io/advisories/50","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://www.npmjs.com/advisories/50","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-9238","tags":["advisory"]},{"url":"https://github.com/vadimdemedes/secure-compare/commit/dd1ff1ac0122de7e0af4f00c61ed73261062394a","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h9x2-5rm7-x4gm"}],"sources":{"cve":[{"id":"CVE-2015-9238","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.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T17:43:37.504Z","cwes":["CWE-697"],"updated_at":"2026-11-02T14:35:40.217028Z"}],"euvd":[{"id":"EUVD-2019-0540","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.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T17:43:37Z","updated_at":"2026-11-03T00:55:39.247967Z"}],"ghsa":[{"id":"GHSA-h9x2-5rm7-x4gm","title":"Insecure Comparison in secure-compare","description":"Versions of `secure-compare` prior to 3.0.1 are affected by a vulnerability that results in the package always returning true when comparing two strings of the same length, despite differences in the contents of those strings.\n\n\n## Recommendation\n\nUpgrade to version 3.0.1 or later.","status":"published","published":"2019-06-03T17:28:23Z","modified":"2023-04-05T19:40:28Z","cwes":["CWE-697"],"updated_at":"2026-11-02T14:36:49.768564Z"}],"nvd":[{"id":"CVE-2015-9238","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.","status":"published","published":"2018-05-31T20:29:00.423Z","modified":"2026-06-17T00:36:06.87Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-697","CWE-134"],"updated_at":"2026-11-02T14:03:19.244941Z"}],"osv":[{"id":"GHSA-h9x2-5rm7-x4gm","title":"Insecure Comparison in secure-compare","description":"Versions of `secure-compare` prior to 3.0.1 are affected by a vulnerability that results in the package always returning true when comparing two strings of the same length, despite differences in the contents of those strings.\n\n\n## Recommendation\n\nUpgrade to version 3.0.1 or later.","status":"published","published":"2019-06-03T17:28:23Z","modified":"2023-11-08T03:58:04.246017Z","cwes":["CWE-697"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
