๐Ÿ” CVE Alert

CVE-2026-67213

MEDIUM 5.9

nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom

CVSS Score
5.9
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-835
Vendor nanoid_project
Product nanoid
Published Jul 29, 2026
Stay Ahead of the Next One

Get instant alerts for nanoid_project nanoid

Be the first to know when new medium vulnerabilities affecting nanoid_project nanoid are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

nanoid_project / nanoid
0 < 5.1.6

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/ai/nanoid/releases/tag/5.1.6 github.com: https://github.com/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7 vulncheck.com: https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-zero-size-in-customalphabet-and-customrandom