nanoid (Non-secure) before 5.1.16 DOS via Infinite Loop on Negative Size
CVE-2026-67214 Published on July 29, 2026
nanoid before 5.1.16 Infinite Loop via Negative Size in non-secure module
nanoid (Nano ID) before 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.
Vulnerability Analysis
CVE-2026-67214 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
What is an Infinite Loop Vulnerability?
The program contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. If the loop can be influenced by an attacker, this weakness could allow attackers to consume excessive resources such as CPU or memory.
CVE-2026-67214 has been classified to as an Infinite Loop vulnerability or weakness.
Products Associated with CVE-2026-67214
Want to know whenever a new CVE is published for Nanoidproject Nanoid? stack.watch will email you.
Affected Versions
nanoid_project nanoid:- Before 5.1.16 is affected.
- Version 5.1.16 is unaffected.