CVE-2026-67213

EUVD-2026-50325
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.
Infinite Loop
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.9 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 24.62%
Affected Products (NVD)
VendorProductVersion
nanoid_projectnanoid
3.0.0 ≤
𝑥
< 3.3.17
nanoid_projectnanoid
5.0.0 ≤
𝑥
< 5.1.6
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-mocha
bookworm
10.1.0+ds1+~cs29.3.1-1
fixed
bullseye
postponed
forky
11.8.0+ds1+~cs36.4.12-3
fixed
sid
11.8.0+ds1+~cs36.4.12-3
fixed
trixie
10.7.2+ds1+~cs33.1.11-2
fixed
node-postcss
bookworm
postponed
forky
8.5.26+~cs10.2.24-1
fixed
sid
8.5.26+~cs10.2.24-1
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
node-postcss
focal
needs-triage
jammy
needs-triage
noble
needs-triage
resolute
not-affected