Skip to content
Fencer Vulns
medium 5.9

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

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-rhel8
    affected: 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-rhel9
    affected: 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-controller
    affected: 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-lightspeed
    affected: 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-rhel9
    affected: 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-rhel9
    affected: 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-cli
    affected: 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-rhel9
    affected: 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 more
  • Red Hat Secrets Management Console for Red Hat OpenShift external-secrets-management/console-plugin-rhel9
    affected: 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 1787259048
    fixed: 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 1787079359
    fixed: 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 1786668856
    fixed: 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 1789978780
    fixed: 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 1787687062
    fixed: 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 1787339249
    fixed: 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 1787339248
    fixed: 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 1787335105
    fixed: 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 1788775748
    fixed: 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 1788783591
    fixed: 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 1791311495
    fixed: 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 1788206196
    fixed: 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.hum1
    fixed: 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 1792148523
    fixed: 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 1791863220
    fixed: 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 1790776512
    fixed: 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 1790778238
    fixed: 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 1790769775
    fixed: 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 1793126829
    fixed: 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 1789162884
    fixed: 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 1792494821
    fixed: 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 1788595574
    fixed: 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 1788561841
    fixed: 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 1788594376
    fixed: 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 1788593843
    fixed: 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

Sources

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.