nanoid
Affected
- introduced
0, fixed3.3.16(semver)
Fixed versions
3.3.16
Fix
- Fixed version
3.3.16npm install [email protected]
Advisory
Also known as: CVE-2026-67214
nanoid: non-secure generators can loop indefinitely with negative size
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.
High Basis: The source's own band: HIGH
0, fixed 3.3.16 (semver)3.3.16
3.3.16npm install [email protected]4.0.0, fixed 5.1.16 (semver)5.1.16
5.1.16npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0