CVE-2026-67213: nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions
CVE-2026-67213 is a medium-severity flaw (CVSS 5.9) affecting nanoid. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 75%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2026-07-29 |
| Last modified | 2026-10-23 |
Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-67213?
nanoid: upgrade to 3.3.17, 5.1.6. Exact commands for each OS are on this page.
Is CVE-2026-67213 being exploited?
CVE-2026-67213 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-67213 affect?
CVE-2026-67213 affects nanoid. Severity is medium (CVSS 5.9). 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 indefi
How urgent is CVE-2026-67213?
Priority 32/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-67214 MEDIUM 5.9 UPGRADE nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions