ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2026-67213

Details

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.

Affected packages

EcosystemPackageAffected versions
Debian:12node-mocha
All versions before 9.1.4+ds1+~cs28.2.8-1 (fixed in 9.1.4+ds1+~cs28.2.8-1)
Debian:13node-mocha
All versions before 9.1.4+ds1+~cs28.2.8-1 (fixed in 9.1.4+ds1+~cs28.2.8-1)
Debian:14node-mocha
All versions before 9.1.4+ds1+~cs28.2.8-1 (fixed in 9.1.4+ds1+~cs28.2.8-1)
Debian:12node-postcss
All versions, no fix listed
Debian:13node-postcss
All versions, no fix listed
Debian:14node-postcss
All versions before 8.5.8+~cs9.3.30-1 (fixed in 8.5.8+~cs9.3.30-1)

References