CVE-2026-67214: nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions
CVE-2026-67214 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 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 functi
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 |
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-67214?
nanoid: upgrade to 3.3.16, 5.1.16. Exact commands for each OS are on this page.
Is CVE-2026-67214 being exploited?
CVE-2026-67214 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-67214 affect?
CVE-2026-67214 affects nanoid. Severity is medium (CVSS 5.9). 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 fro
How urgent is CVE-2026-67214?
Priority 32/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-67213 MEDIUM 5.9 UPGRADE nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions