CVE-2026-67213 nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom
HighCVSS 8.2
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
75 packages: 11 fixed, 64 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-postcss(Debian 12) | = 8.4.20+~cs8.0.23-1; = 8.4.20+~cs8.0.23-1+deb12u1; = 8.4.31+~cs8.0.26-1; = 8.4.39+~cs9.2.29-1 +17 more | No fix listed | No fix yet |
| debian/node-postcss(Debian 13) | = 8.4.49+~cs9.2.32-1; = 8.5.6+~cs9.3.28-1; = 8.5.8+~cs9.3.30-1; = 8.5.9+~cs9.3.30-1 +13 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal:1788775748(Red Hat ansible_portal 2.1) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal:1788783591(Red Hat ansible_portal 2.2) | All versions | No fix listed | No fix yet |
| redhat/apicurio/apicurio-registry-ui-rhel8(Red Hat apicurio_registry 3) | All versions | No fix listed | No fix yet |
| redhat/apicurio/apicurio-registry-ui-rhel9(Red Hat apicurio_registry 3) | All versions | No fix listed | No fix yet |
| redhat/automation-controller(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9:1787762793(Red Hat openshift_devspaces 3.30 el9) | All versions | No fix listed | No fix yet |
| redhat/devspaces/dashboard-rhel9:1789162884(Red Hat openshift_devspaces 3.30 el9) | All versions | No fix listed | No fix yet |
| redhat/devspaces/openvsx-rhel9:1792494821(Red Hat openshift_devspaces 3.31 el9) | All versions | No fix listed | No fix yet |
| redhat/discovery/discovery-ui-rhel9:1788206196(Red Hat discovery 2 el9) | All versions | No fix listed | No fix yet |
| redhat/external-secrets-management/console-plugin-rhel9(Red Hat secrets_management_console 0) | All versions | No fix listed | No fix yet |
| redhat/microshift-gitops(Red Hat openshift_gitops 1) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1786668856(Red Hat multicluster_engine 2.17 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1787079359(Red Hat multicluster_engine 2.9 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1787259048(Red Hat multicluster_engine 2.8 el9) | All versions | No fix listed | No fix yet |
| redhat/network-observability/network-observability-console-plugin-pf5-rhel9:1789978780(Red Hat network_observ_optr 1.12 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-client-console-rhel9(Red Hat openshift_data_foundation 4) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-console-rhel9:1793126829(Red Hat openshift_data_foundation 4.19 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-multicluster-console-rhel9(Red Hat openshift_data_foundation 4) | All versions | No fix listed | No fix yet |
| redhat/openshift-gitops-argocd-cli(Red Hat openshift_gitops 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-agentic-console-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-console-plugin-419-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-console-plugin-pf5-rhel9(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel9(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel8(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel9(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-agent-installer-ui-rhel9:1790769775(Red Hat openshift 4.22 el9) | All versions | No fix listed | No fix yet |
… and 45 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm nanoid | >= 3.0.0, < 3.3.17 | 3.3.17 |
| npm nanoid | >= 5.0.0, < 5.1.6 | 5.1.6 |
| redhat/multicluster-engine/console-mce-rhel9:1786668856(Red Hat:multicluster_engine:2.17::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1787259048(Red Hat:multicluster_engine:2.8::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1787079359(Red Hat:multicluster_engine:2.9::el9) | All versions | No fix listed |
| redhat/network-observability/network-observability-console-plugin-pf5-rhel9:1789978780(Red Hat:network_observ_optr:1.12::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1787687062(Red Hat:acm:2.11::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1787339249(Red Hat:acm:2.13::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1787339248(Red Hat:acm:2.14::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1787335105(Red Hat:acm:2.17::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal:1788775748(Red Hat:ansible_portal:2.1) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal:1788783591(Red Hat:ansible_portal:2.2) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9:1791311495(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/discovery/discovery-ui-rhel9:1788206196(Red Hat:discovery:2::el9) | All versions | No fix listed |
| redhat/jaeger-main(Red Hat:hummingbird:1) | < 2.20.0-0.6.hum1 | 2.20.0-0.6.hum1 |
| redhat/grafana12-4-main(Red Hat:hummingbird:1) | < 12.4.6-0.2.hum1 | 12.4.6-0.2.hum1 |
| redhat/grafana13-1-main(Red Hat:hummingbird:1) | < 13.1.1-0.3.hum1 | 13.1.1-0.3.hum1 |
| redhat/rhoai/odh-feature-server-rhel9:1792148523(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9:1791863220(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/openshift4/ose-agent-installer-ui-rhel9:1790776512(Red Hat:openshift:4.20::el9) | All versions | No fix listed |
| redhat/openshift4/ose-agent-installer-ui-rhel9:1790778238(Red Hat:openshift:4.21::el9) | All versions | No fix listed |
| redhat/openshift4/ose-agent-installer-ui-rhel9:1790769775(Red Hat:openshift:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-console-rhel9:1793126829(Red Hat:openshift_data_foundation:4.19::el9) | All versions | No fix listed |
| redhat/devspaces/code-rhel9:1787762793(Red Hat:openshift_devspaces:3.30::el9) | All versions | No fix listed |
| redhat/devspaces/dashboard-rhel9:1789162884(Red Hat:openshift_devspaces:3.30::el9) | All versions | No fix listed |
Show 91 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/devspaces/openvsx-rhel9:1792494821(Red Hat:openshift_devspaces:3.31::el9) | All versions | No fix listed |
| redhat/quay/quay-rhel8:1788561841(Red Hat:quay:3.10::el8) | All versions | No fix listed |
| redhat/quay/quay-rhel8:1788594376(Red Hat:quay:3.12::el8) | All versions | No fix listed |
| redhat/quay/quay-rhel8:1788593843(Red Hat:quay:3.14::el8) | All versions | No fix listed |
| redhat/quay/quay-rhel9:1789563753(Red Hat:quay:3.16::el9) | All versions | No fix listed |
| redhat/quay/quay-rhel9:1790690298(Red Hat:quay:3.17::el9) | All versions | No fix listed |
| redhat/quay/quay-rhel8:1788595574(Red Hat:quay:3.9::el8) | All versions | No fix listed |
| redhat/rhtas/rekor-search-ui-rhel9:1791534339(Red Hat:trusted_artifact_signer:1.4::el9) | All versions | No fix listed |
| redhat/rhmtc/openshift-migration-ui-rhel8(Red Hat:rhmt:1) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-must-gather-rhel9(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-operator-bundle(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-rhel9-operator(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-remediation-console-rhel8(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-agentic-console-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-419-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-pf5-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel8(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/apicurio/apicurio-registry-ui-rhel8(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| redhat/apicurio/apicurio-registry-ui-rhel9(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/redhat-certification-cnf(Red Hat:certifications:9) | All versions | No fix listed |
| redhat/rhcl-1/rhcl-console-plugin-rhel9(Red Hat:connectivity_link:1) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/odf4/ocs-client-console-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-console-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/microshift-gitops(Red Hat:openshift_gitops:1) | All versions | No fix listed |
| redhat/openshift-gitops-argocd-cli(Red Hat:openshift_gitops:1) | All versions | No fix listed |
| redhat/satellite/iop-advisor-frontend-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/satellite/iop-host-inventory-frontend-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/satellite/iop-vulnerability-frontend-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/external-secrets-management/console-plugin-rhel9(Red Hat:secrets_management_console:0) | All versions | No fix listed |
| npm nanoid(npm) | >= 4.0.0, < 5.1.6 | 5.1.6 |
| npm nanoid(npm) | < 3.3.18 | 3.3.18 |
| debian/node-mocha(Debian:12) | < 9.1.4+ds1+~cs28.2.8-1 | 9.1.4+ds1+~cs28.2.8-1 |
| debian/node-mocha(Debian:13) | < 9.1.4+ds1+~cs28.2.8-1 | 9.1.4+ds1+~cs28.2.8-1 |
| debian/node-mocha(Debian:14) | < 9.1.4+ds1+~cs28.2.8-1 | 9.1.4+ds1+~cs28.2.8-1 |
| debian/node-postcss(Debian:12) | All versions | No fix listed |
| debian/node-postcss(Debian:12) | = 8.4.20+~cs8.0.23-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.4.20+~cs8.0.23-1+deb12u1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.4.31+~cs8.0.26-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.4.39+~cs9.2.29-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.4.49+~cs9.2.32-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.12+~cs9.3.32-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.14+~cs9.3.34-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.15+~cs9.3.34-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.15+~cs9.3.38-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.15+~cs9.3.39-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.19+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.21+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.23+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.25+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.26+~cs10.2.24-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.28+~cs10.2.24-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.31+~cs10.2.26-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.6+~cs9.3.28-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.8+~cs9.3.30-1 | No fix listed |
| debian/node-postcss(Debian:12) | = 8.5.9+~cs9.3.30-1 | No fix listed |
| debian/node-postcss(Debian:13) | All versions | No fix listed |
| debian/node-postcss(Debian:13) | = 8.4.49+~cs9.2.32-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.12+~cs9.3.32-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.14+~cs9.3.34-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.15+~cs9.3.34-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.15+~cs9.3.38-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.15+~cs9.3.39-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.19+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.21+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.23+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.25+~cs10.2.23-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.26+~cs10.2.24-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.28+~cs10.2.24-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.31+~cs10.2.26-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.6+~cs9.3.28-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.8+~cs9.3.30-1 | No fix listed |
| debian/node-postcss(Debian:13) | = 8.5.9+~cs9.3.30-1 | No fix listed |
| debian/node-postcss(Debian:14) | < 8.5.8+~cs9.3.30-1 | 8.5.8+~cs9.3.30-1 |
| debian/node-postcss(Debian:14) | = 8.4.49+~cs9.2.32-1 | No fix listed |
| debian/node-postcss(Debian:14) | = 8.5.6+~cs9.3.28-1 | No fix listed |
| ubuntu/node-postcss(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-postcss(Ubuntu:24.04) | All versions | No fix listed |
| nanoid project nanoid | >= 3.0.0, < 3.3.17 | 3.3.17 |
| nanoid project nanoid | >= 5.0.0, < 5.1.6 | 5.1.6 |
| azure linux python-jupytext(Azure Linux:4.0) | < 0:1.19.6-2.azl4 | 0:1.19.6-2.azl4 |
References
- nanoid 5.1.6 release notes product release-notes
- Fix commit (reject size of 0) patch
- VulnCheck Advisory: nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom patch release-notes third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:59593 patch vendor-advisory
- RHSA-2026:59558 patch vendor-advisory
- RHSA-2026:59559 patch vendor-advisory
- RHSA-2026:70593 patch vendor-advisory
- RHSA-2026:60387 patch vendor-advisory
- RHSA-2026:60390 patch vendor-advisory
- RHSA-2026:60388 patch vendor-advisory
- RHSA-2026:60386 patch vendor-advisory
- RHSA-2026:65118 patch vendor-advisory
- RHSA-2026:65155 patch vendor-advisory
- RHSA-2026:79088 patch vendor-advisory
- RHSA-2026:61783 patch vendor-advisory
- RHSA-2026:47614 patch vendor-advisory
- RHSA-2026:47619 patch vendor-advisory
- RHSA-2026:48241 patch vendor-advisory
- RHSA-2026:87410 patch vendor-advisory
- RHSA-2026:84734 patch vendor-advisory
- RHSA-2026:74380 patch vendor-advisory
- RHSA-2026:74383 patch vendor-advisory
- RHSA-2026:74429 patch vendor-advisory
- RHSA-2026:92650 patch vendor-advisory
- RHSA-2026:62260 patch vendor-advisory
- RHSA-2026:68754 patch vendor-advisory
- RHSA-2026:90321 patch vendor-advisory
- RHSA-2026:66084 patch vendor-advisory
- RHSA-2026:66523 patch vendor-advisory
- RHSA-2026:70267 patch vendor-advisory
- RHSA-2026:69255 patch vendor-advisory
- RHSA-2026:74511 patch vendor-advisory
- RHSA-2026:65514 patch vendor-advisory
- RHSA-2026:83598 patch vendor-advisory
- Red Hat Bugzilla 2508406 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com
- github.com patch
- github.com
- github.com
- Debian Security Tracker CVE-2026-67213 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-50325 third-party-advisory