otpauth
HMAC-based (HOTP, RFC 4226) and time-based (TOTP, RFC 6238) one-time password generation and validation for Node.js, Deno, Bun and browsers.
In short
What to know.
- Algorithms
- HMACNone would be broken by a large quantum computer.
- Advisories
- 1 in the storeOSV last read 3 December 2026, 16:49 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions.
1 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| Authentication Bypass in otpauth | GHSA-rmmc-8cqj-hfp3 | before 3.2.8 | Fixed in 3.2.8 | Rated High |
1 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| Authentication Bypass in otpauth | NMN-2026-0070 | Severity High | 3 December 2026 |
Reviewed 3 December 2026
Sources
- npm registry metadata for otpauthregistry.npmjs.orgRetrieved 3 December 2026
- otpauth READMEgithub.comRetrieved 3 December 2026
Full record
- Package
- otpauth
- Ecosystem
- npm
- Role
- Protocol
- Repository
- github.com/hectorm/otpauth
- Status
- Not marked deprecated by its registry or maintainers.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:49 UTC
- Findings
- 1 listed above.
Algorithms it provides
- HMAC macSymmetricWeakened by Grover's search
What a large quantum computer would change
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.HMAC
Notes describe algorithm families, not any one project.