{"id":"GHSA-rmmc-8cqj-hfp3","aliases":[],"status":"published","title":"Authentication Bypass in otpauth","description":"Versions of `otpauth` prior to 3.2.8 are vulnerable to Authentication Bypass. The package's `totp.validate()` function may return positive values for single digit tokens even if they are invalid. This may allow attackers to bypass the OTP authentication by providing single digit tokens.\n\n\n## Recommendation\n\nUpgrade to version 3.2.8 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287"],"published":"2020-09-03T18:24:43Z","modified":"2023-01-09T05:04:20Z","fixes":[{"ecosystem":"npm","package":"otpauth","fixed_in":["3.2.8"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"otpauth","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.8"}]}]},{"source":"osv","ecosystem":"npm","package":"otpauth","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.8"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1087","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rmmc-8cqj-hfp3"}],"sources":{"ghsa":[{"id":"GHSA-rmmc-8cqj-hfp3","title":"Authentication Bypass in otpauth","description":"Versions of `otpauth` prior to 3.2.8 are vulnerable to Authentication Bypass. The package's `totp.validate()` function may return positive values for single digit tokens even if they are invalid. This may allow attackers to bypass the OTP authentication by providing single digit tokens.\n\n\n## Recommendation\n\nUpgrade to version 3.2.8 or later.","status":"published","published":"2020-09-03T18:24:43Z","modified":"2023-01-09T05:04:20Z","cwes":["CWE-287"],"updated_at":"2026-11-02T14:36:09.554044Z"}],"osv":[{"id":"GHSA-rmmc-8cqj-hfp3","title":"Authentication Bypass in otpauth","description":"Versions of `otpauth` prior to 3.2.8 are vulnerable to Authentication Bypass. The package's `totp.validate()` function may return positive values for single digit tokens even if they are invalid. This may allow attackers to bypass the OTP authentication by providing single digit tokens.\n\n\n## Recommendation\n\nUpgrade to version 3.2.8 or later.","status":"published","published":"2020-09-03T18:24:43Z","modified":"2020-08-31T18:46:51Z","cwes":["CWE-287"],"updated_at":"2026-11-02T15:46:56.281047Z"}]}}
