Disclosure summary
nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefinitely, hanging the calling thread. An application that passes an unvalidated, attacker-controlled size of 0 to these functions is exposed to a denial-of-service condition.
Source-reported weakness categories
CWE-835
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST National Vulnerability Database · NVD-CVE-2026-67213
Open original source · Updated Oct 08, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
| Vendor | Product / association | Version / bounds |
|---|---|---|
| nanoid_project | nanoid | * {"versionStartIncluding":"5.0.0","versionEndExcluding":"5.1.6"} |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Patch
- github.com — Product, Release Notes
- www.vulncheck.com — Patch, Release Notes, Third Party Advisory
PUBLISHED 2026-07-29T10:16:34-04:00
MODIFIED 2026-10-08T12:17:30-04:00
INGESTED 2026-10-10T20:50:36-04:00