{"id":"GHSA-rmmc-8cqj-hfp3","aliases":["GHSA-rmmc-8cqj-hfp3"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication Bypass in otpauth","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T18:24:43.000Z","modified":"2020-08-31T18:46:51.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.2.8"}],"ecosystem":"npm","package":"otpauth","purl":"pkg:npm/otpauth","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/1087","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rmmc-8cqj-hfp3","url":"https://github.com/advisories/GHSA-rmmc-8cqj-hfp3","licence":"CC-BY-4.0","modified":"2020-08-31T18:46:51.000Z"}],"updatedAt":"2026-11-25T22:56:46.489Z"}