SB2026091013 - Infinite loop in nanoid (Nano ID)
Published: September 10, 2026 Updated: September 30, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Infinite loop (CVE-ID: CVE-2026-67214)
CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). A remote attacker can consume all available system resources and cause denial of service conditions.
Remediation
Install update from vendor's website.
References
- https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49
- https://github.com/ai/nanoid/releases/tag/3.3.16
- https://github.com/ai/nanoid/releases/tag/5.1.16
- https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module
- https://github.com/advisories/GHSA-28wg-ghj8-5hjv