CVE-2026-67214 HIGH

CVE-2026-67214: nanoid before 5.1.16 Infinite Loop via Negative Size in non-secure module

Vendor Nanoid_Project
Product nanoid
Weakness CWE-835
Published July 29, 2026
Last update July 29, 2026

CVSS base score

8.2/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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

Key dates

02Disclosure timeline

July 29, 2026 CVE published