CVE-2026-67213CWE-835

CVE-2026-67213

Medium · published July 29, 2026

CVSS v3.1
5.9
EPSS
1%
Percentile
47.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.9 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00587 · 47.4th percentile
Weakness
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')
Published
2026-07-29T18:16Z
Affected products (2)
ProductVersionsFixed in
nanoid_project/nanoid≥ 3.0.0, < 3.3.173.3.17
nanoid_project/nanoid≥ 5.0.0, < 5.1.65.1.6
References (3)
EPSS history
Timeline
  • 29 JUL 13:32Z
    nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom
    cvelistv5