CVE-2026-67214
published high CVSS 4.0 · 8.2nanoid Infinite Loop via Negative Size in non-secure module
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nanoid_project | — | nanoid4.0.0 to < 5.1.16 (affected · semver) · 5.1.16 (unaffected · semver) · 0 to < 3.3.16 (affected · semver) · 3.3.16 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.9 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nanoid_project | nanoid | 4.0.0 to < 5.1.16 (affected · semver)5.1.16 (unaffected · semver)0 to < 3.3.16 (affected · semver)3.3.16 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
4- Fix Commit https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49
- v3.3.16 Release Notes https://github.com/ai/nanoid/releases/tag/3.3.16
- v5.1.16 Release Notes https://github.com/ai/nanoid/releases/tag/5.1.16
- VulnCheck Advisory https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module
Provider assertions
2VulnCheck · cna
nanoid Infinite Loop via Negative Size in non-secure module
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c2f379739fb7215c3fee9c2b7e3618ad74f89f44d04d999cfcf00a7aa4ef10aa
- Ingested
- 29 Oct 2026, 21:23:06 UTC
- Source record
- Official CVE record