# GHSA-rmmc-8cqj-hfp3: Authentication Bypass in otpauth

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T18:24:43.000Z
- Modified: 2020-08-31T18:46:51.000Z
- Weaknesses: CWE-287

## 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.


## Recommendation

Upgrade to version 3.2.8 or later.

(As written by GitHub Advisory Database.)

## Affected

- otpauth (npm): before 3.2.8

## References

- <https://www.npmjs.com/advisories/1087> (web)

## Sources

- GitHub Advisory Database: [GHSA-rmmc-8cqj-hfp3](https://github.com/advisories/GHSA-rmmc-8cqj-hfp3), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-rmmc-8cqj-hfp3 · Whole record: https://cve.day/GHSA-rmmc-8cqj-hfp3.json · Rebuilt by cve.day 2026-11-25T22:56:46.489Z
