Disclosure summary
nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented from a negative value and never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that passes an unvalidated, attacker-controlled negative size 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-67214
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":"4.0.0","versionEndExcluding":"5.1.16"} |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Patch
- github.com — Product, Release Notes
- github.com — Product, Release Notes
- www.vulncheck.com — Patch, Release Notes, Third Party Advisory
PUBLISHED 2026-07-29T10:16:35-04:00
MODIFIED 2026-10-08T12:17:30-04:00
INGESTED 2026-10-10T20:50:36-04:00