nanoid
Affected
- introduced
0, fixed3.3.18(semver)
Fixed versions
3.3.18
Fix
- Fixed version
3.3.18npm install [email protected]
Advisory
Also known as: CVE-2026-67213
nanoid: custom generators can loop indefinitely when size is zero
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.
High Basis: The source's own band: HIGH
0, fixed 3.3.18 (semver)3.3.18
3.3.18npm install [email protected]4.0.0, fixed 5.1.6 (semver)5.1.6
5.1.6npm 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