CVE-2026-67213 json
nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom
published 2026-07-29 3 mo ago modified 2026-10-23 16 d ago also GHSA-2v37-7h3g-55p8 , EUVD-2026-50325
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm nanoid 3.3.18, 5.1.6
- nanoid_project nanoid 3.3.17, 5.1.6
- node-mocha Debian 14, Debian 13, Debian 12 9.1.4+ds1+~cs28.2.8-1
- node-postcss Debian 14 8.5.8+~cs9.3.30-1
debian advisories DEBIAN-CVE-2026-67213
- jaeger hummingbird 1 2.20.0-0.6.hum1
- grafana13.1 hummingbird 1 13.1.1-0.3.hum1
- grafana12.4 hummingbird 1 12.4.6-0.2.hum1
red hat advisories RHSA-2026:47614RHSA-2026:48241RHSA-2026:47619
- github.com/ai/nanoid@cb3626d commit
- github.com/ai/nanoid@e10f8d4 commit
- github.com/ai/nanoid@f9d13f1 commit
- github.com/ai/nanoid/releases/tag/5.1.6 release
- github.com/ai/nanoid/releases/tag/3.3.17 release
- github.com/ai/nanoid/releases/tag/3.3.18 release
- vulncheck.com/advisories/nanoid-before-infinite-loop-via-zero-size-in-cu… advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-67213 updated cvss 7.5
nanoid: nanoid: Denial of Service via infinite loop in random ID generation
-
Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8affected: workaround, no fix planned “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8, workload-availability/node-healthcheck-rhel9-operator, workload-availability/node-healthcheck-operator-bundle, workload-availability/node-healthcheck-must-gather-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-console-plugin-rhel9, openshift-lightspeed/lightspeed-agentic-console-rhel9, openshift-lightspeed/lightspeed-console-plugin-419-rhel9, openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-ui-rhel9, openshift-pipelines/pipelines-console-plugin-rhel9, openshift-pipelines/pipelines-console-plugin-pf5-rhel9affected: workaround, no fix available “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat Ansible Automation Platform 2 automation-controlleraffected: workaround, no fix planned “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat build of Apicurio Registry 3 apicurio/apicurio-registry-ui-rhel8, apicurio/apicurio-registry-ui-rhel9 Red Hat Build of Podman Desktop rh-podman-desktop.git Red Hat Certification Program for Red Hat Enterprise Linux 9 redhat-certification-cnf Red Hat Connectivity Link 1 rhcl-1/rhcl-console-plugin-rhel9 Red Hat Developer Hub 1 rhdh/red-hat-developer-hub-backstage-plugin-lightspeedaffected: workaround, no fix available “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9affected: workaround, no fix available, no fix planned “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat Openshift Data Foundation 4 odf4/ocs-client-console-rhel9, odf4/odf-multicluster-console-rhel9affected: workaround, no fix available “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat OpenShift GitOps microshift-gitops, openshift-gitops-argocd-cliaffected: workaround, no fix available, no fix planned “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat Satellite 6 satellite/iop-advisor-frontend-rhel9, satellite/iop-vulnerability-frontend-rhel9, satellite/iop-host-inventory-frontend-rhel9affected: workaround, no fix planned “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
show 26 moreshow fewer
-
Red Hat Secrets Management Console for Red Hat OpenShift external-secrets-management/console-plugin-rhel9affected: workaround, no fix available “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.”
-
Red Hat multicluster engine for Kubernetes 2.8 multicluster-engine/console-mce-rhel9 1787259048fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:59558
-
Red Hat multicluster engine for Kubernetes 2.9 multicluster-engine/console-mce-rhel9 1787079359fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:59559
-
Red Hat multicluster engine for Kubernetes 2.17 multicluster-engine/console-mce-rhel9 1786668856fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:59593
-
Red Hat Network Observability (NETOBSERV) 1.12.3 network-observability/network-observability-console-plugin-pf5-rhel9 1789978780fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:70593
-
Red Hat Advanced Cluster Management for Kubernetes 2.11 rhacm2/console-rhel9 1787687062fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:60387
-
Red Hat Advanced Cluster Management for Kubernetes 2.13 rhacm2/console-rhel9 1787339249fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:60390
-
Red Hat Advanced Cluster Management for Kubernetes 2.14 rhacm2/console-rhel9 1787339248fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:60388
-
Red Hat Advanced Cluster Management for Kubernetes 2.17 rhacm2/console-rhel9 1787335105fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:60386
-
Red Hat Ansible Automation Platform 2.1 ansible-automation-platform/automation-portal 1788775748fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:65118
-
Red Hat Ansible Automation Platform 2.2 ansible-automation-platform/automation-portal 1788783591fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:65155
-
Red Hat Developer Hub 1.10 rhdh/rhdh-hub-rhel9 1791311495fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:79088
-
Red Hat Discovery 2 discovery/discovery-ui-rhel9 1788206196fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:61783
-
Red Hat Hardened Images jaeger 2.20.0-0.6.hum1, grafana12.4 12.4.6-0.2.hum1, grafana13.1 13.1.1-0.3.hum1fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:47619
-
Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:87410
-
Red Hat OpenShift AI 3.4 rhoai/odh-feature-server-rhel9 1791863220fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:84734
-
Red Hat OpenShift Container Platform 4.20 openshift4/ose-agent-installer-ui-rhel9 1790776512fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:74380
-
Red Hat OpenShift Container Platform 4.21 openshift4/ose-agent-installer-ui-rhel9 1790778238fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:74383
-
Red Hat OpenShift Container Platform 4.22 openshift4/ose-agent-installer-ui-rhel9 1790769775fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:74429
-
Red Hat Openshift Data Foundation 4.19 odf4/odf-console-rhel9 1793126829fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:92650
-
Red Hat OpenShift Dev Spaces 3.30 devspaces/code-rhel9 1787762793, devspaces/dashboard-rhel9 1789162884fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:62260
-
Red Hat OpenShift Dev Spaces 3.31 devspaces/openvsx-rhel9 1792494821fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:90321
-
Red Hat Quay 3.9 quay/quay-rhel8 1788595574fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:65514
-
Red Hat Quay 3.10 quay/quay-rhel8 1788561841fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:66084
-
Red Hat Quay 3.12 quay/quay-rhel8 1788594376fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:66523
-
Red Hat Quay 3.14 quay/quay-rhel8 1788593843fixed: vendor fix “To mitigate this issue, ensure application code validates the size parameter passed to customAlphabet or customRandom, rejecting or sanitizing zero-value inputs before passing them to nanoid.” RHSA-2026:70267
3 more fixed, 46 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.2 | 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 |
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 8.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | nanoid | <3.3.18 >=4.0.0, <5.1.6 |
3.3.18 5.1.6 |
Affected products
- nanoid_project nanoid
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7
patch, web
-
vulncheck.com
/advisories/nanoid-before-infinite-loop-via-zero-size-in-customalphabet-and-customrandom
third-party-advisory, web, patch, release-notes
-
github.com
/ai/nanoid/commit/e10f8d40ce9d1ab47f66d65a16b48086432730d0
web
-
github.com
/ai/nanoid/commit/f9d13f150847d117877adee3460a46eceb0cf49b
web
-
github.com
/ai/nanoid/releases/tag/5.1.6
release-notes, web, product
-
nvd.nist.gov
/vuln/detail/CVE-2026-67213
advisory
-
github.com
/ai/nanoid
package
-
github.com
/ai/nanoid/releases/tag/3.3.17
web
-
github.com
/ai/nanoid/releases/tag/3.3.18
web
Sources
- CVE List CVE-2026-67213
- GitHub Advisory GHSA-2v37-7h3g-55p8
- NVD CVE-2026-67213
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.