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.
Metrics
Affected Vendors & Products
References
History
Wed, 29 Jul 2026 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Wed, 29 Jul 2026 14:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | nanoid before 5.1.16 Infinite Loop via Negative Size in non-secure module | |
| First Time appeared |
Nanoid Project
Nanoid Project nanoid |
|
| Weaknesses | CWE-835 | |
| CPEs | cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Nanoid Project
Nanoid Project nanoid |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-07-29T14:37:19.382Z
Reserved: 2026-07-28T18:13:39.684Z
Link: CVE-2026-67214
Updated: 2026-07-29T14:37:15.476Z
No data.
No data.
OpenCVE Enrichment
Updated: 2026-07-29T15:45:03Z