๐Ÿ” CVE Alert

CVE-2026-67214

MEDIUM 5.9

nanoid before 5.1.16 Infinite Loop via Negative Size in non-secure module

CVSS Score
5.9
EPSS Score
0.0%
EPSS Percentile
0th

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.

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.16

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/ai/nanoid/releases/tag/5.1.16 github.com: https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49 vulncheck.com: https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module