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.
CVE-2026-67213
Score 5.9 from GitHub Security Advisory (severity: HIGH) published 2026-07-29. a secondary CVSS source baseline 5.9; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.9
- EG Score
- 5.9(high)
- EG Risk
- 27(Track)EG Risk 27/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity59% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 25%
- KEV
- Not listed
Published
July 29, 2026
Last Modified
August 10, 2026
Advisory Details (3)
Auto-updated Jul 29, 2026nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom | Advisories | VulnCheck
https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-zero-size-in-customalphabet-and-customrandomcommit cb3626d0f334 (ai/nanoid)
Patch available: ai/nanoid 5.1.6 (contains commit cb3626d0f334)
https://github.com/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e75.1.6
Patch available: ai/nanoid 5.1.6
https://github.com/ai/nanoid/releases/tag/5.1.6Vendor Advisories for CVE-2026-67213(4)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:48241Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
- GHSA-2v37-7h3g-55p8GitHub Security AdvisoriesHigh
nanoid: custom generators can loop indefinitely when size is zero
- RHSA-2026:47619Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:47614Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Patch Availability(3)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | grafana13-1-main-13.1.1-0.3.hum1 | 2026-07-29 | redhat |
| redhat | jaeger-main-2.20.0-0.6.hum1 | 2026-07-28 | redhat |
| redhat | grafana12-4-main-12.4.6-0.2.hum1 | 2026-07-28 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(9 across 5 ecosystems)
Debian:11(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mocha | 10.0.0+ds1+~cs28.5.6-1 ... 9.2.2+ds1+~cs28.5.6-2 (30 versions) | — | — |
| node-postcss | 8.2.1+~cs5.3.23-8 ... 8.5.9+~cs9.3.30-1 (31 versions) | — | — |
Debian:12(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mocha | — | 9.1.4+ds1+~cs28.2.8-1 | — |
| node-postcss | 8.4.20+~cs8.0.23-1 ... 8.5.9+~cs9.3.30-1 (17 versions) | — | — |
Debian:13(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mocha | — | 9.1.4+ds1+~cs28.2.8-1 | — |
| node-postcss | 8.4.49+~cs9.2.32-1 ... 8.5.9+~cs9.3.30-1 (13 versions) | — | — |
Debian:14(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mocha | — | 9.1.4+ds1+~cs28.2.8-1 | — |
| node-postcss | 8.4.49+~cs9.2.32-1, 8.5.6+~cs9.3.28-1 | 8.5.8+~cs9.3.30-1 | — |
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| nanoid | — | 5.1.6 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 17× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-15 15:44 UTCEG score recompute
- 2026-08-15 15:44 UTCVendor advisory
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 15:54 UTCEG score recompute
- 2026-08-14 15:54 UTCVendor advisory
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 16:04 UTCVendor advisory
- 2026-08-12 16:09 UTCEG score recompute
- 2026-08-12 16:09 UTCVendor advisory
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 16:19 UTCEG score recompute
- 2026-08-11 16:19 UTCVendor advisory
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-10 16:29 UTCEG score recompute
- 2026-08-10 16:10 UTCEG score recompute
- 2026-08-09 17:32 UTCEG score recompute
- 2026-08-09 13:47 UTCEPSS rescore
- 2026-08-08 17:42 UTCEG score recompute
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-07 17:52 UTCEG score recompute
- 2026-08-07 17:52 UTCGHSA enrichment
- 2026-08-06 18:02 UTCEG score recompute
- 2026-08-06 18:02 UTCGHSA enrichment
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-05 19:17 UTCEPSS rescore
Show 20 moreShow fewer
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 18:11 UTCGHSA enrichment
- 2026-08-04 18:21 UTCEG score recompute
- 2026-08-04 18:21 UTCGHSA enrichment
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-03 18:31 UTCGHSA enrichment
- 2026-08-02 18:41 UTCGHSA enrichment
- 2026-08-01 18:51 UTCEG score recompute
- 2026-08-01 18:51 UTCGHSA enrichment
- 2026-08-01 04:16 UTCEPSS rescore
- 2026-07-31 19:00 UTCGHSA enrichment
- 2026-07-30 19:09 UTCEG score recompute
- 2026-07-30 19:09 UTCGHSA enrichment
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 15:42 UTCEG score recompute
- 2026-07-30 15:42 UTCGHSA enrichment
- 2026-07-29 14:19 UTCEG score recompute
- 2026-07-29 13:58 UTCEG score recompute
- 2026-07-29 13:57 UTCMITRE cvelistV5first tracked
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
- CVE-2001-0825EG 10.0HIGH
- CVE-2001-1009EG 10.0EPSS p93HIGH
- CVE-2001-0554EG 10.0EPSS p98HIGH
- CVE-2001-1162EG 10.0EPSS p96HIGH
- CVE-2001-0414EG 10.0EPSS p100HIGH
- CVE-2001-0191EG 10.0EPSS p92HIGH
- CVE-2001-0301EG 10.0EPSS p90HIGH
- CVE-2001-0197EG 10.0EPSS p96HIGH
- CVE-2001-0233EG 10.0EPSS p96HIGH
- CVE-2001-0010EG 10.0EPSS p98HIGH
Same CWE
10 shownCWE-835
Frequently asked(5)
What is CVE-2026-67213?
When was CVE-2026-67213 disclosed?
Is CVE-2026-67213 actively exploited?
What is the CVSS score of CVE-2026-67213?
How do I remediate CVE-2026-67213?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-67213
Is Your Infrastructure Affected by CVE-2026-67213?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.