CVE-2026-67214CWE-835

CVE-2026-67214

Medium · published July 29, 2026

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

nanoid (Nano ID) before 3.3.16 and 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.

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.00330 · 24.8th 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.3.163.3.16
nanoid_project/nanoid≥ 4.0.0, < 5.1.165.1.16
References (4)
EPSS history
Timeline
  • 29 JUL 13:32Z
    nanoid before 5.1.16 Infinite Loop via Negative Size in non-secure module
    cvelistv5