CVE-2026-67214 json
nanoid Infinite Loop via Negative Size in non-secure module
published 2026-07-29 3 mo ago modified 2026-10-29 10 d ago also GHSA-28wg-ghj8-5hjv , EUVD-2026-50326
- 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 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.
Patch / fix
- npm nanoid 3.3.16, 5.1.16
- nanoid_project nanoid 3.3.16, 5.1.16
- node-mocha Debian 14, Debian 13, Debian 12 9.1.4+ds1+~cs28.2.8-1
- node-postcss Debian 14 8.5.15+~cs9.3.39-1
debian advisories DEBIAN-CVE-2026-67214
- receptor ansible automation platform 2.6 1.6.8-1.el10ap
- receptor ansible automation platform inside 2.6, ansible automation platform developer 2.6, ansible automation platform 2.6 1.6.8-1.el9ap
- python-sqlparse ansible automation platform developer 2.6, ansible automation platform 2.6 0.6.0-1.el10ap
- python3-sqlparse ansible automation platform developer 2.6, ansible automation platform 2.6 0.6.0-1.el10ap
- python3.12-sqlparse ansible automation platform developer 2.6, ansible automation platform 2.6 0.6.0-1.el9ap
- python3.12-gitpython ansible automation platform 2.6 3.1.60-1.el9ap
- automation-controller ansible automation platform developer 2.6, ansible automation platform 2.6 4.7.17-1.el9ap
- automation-platform-ui ansible automation platform 2.6 2.6.14-1.el9ap
red hat advisories RHSA-2026:71113RHSA-2026:59030RHSA-2026:48320RHSA-2026:48241
- github.com/ai/nanoid@6ccc67b commit
- github.com/ai/nanoid@e835c9b commit
- github.com/ai/nanoid#600 pull request
- github.com/ai/nanoid#601 pull request
- github.com/ai/nanoid/releases/tag/5.1.16 release
- github.com/ai/nanoid/releases/tag/3.3.16 release
- vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-i… 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-67214 updated cvss 7.5
nanoid: nanoid: Denial of Service via negative size input in non-secure module functions
-
Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8, workload-availability/node-healthcheck-rhel9-operator Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-console-plugin-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-ui-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 automation-controlleraffected: workaround, no fix planned “Will not fix”
-
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 Enterprise Linux 9 grafana, grafana-selinux Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9affected: workaround, no fix available
-
Red Hat Fuse 7 nanoidaffected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-console-rhel9 Red Hat OpenShift Container Platform 5 openshift5/ose-console-rhel9affected: workaround, no fix available
-
Red Hat OpenShift GitOps microshift-gitops, openshift-gitops-argocd-cliaffected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Satellite 6 satellite/iop-advisor-frontend-rhel9 Red Hat Secrets Management Console for Red Hat OpenShift external-secrets-management/console-plugin-rhel9affected: workaround, no fix available
show 23 moreshow fewer
-
Red Hat multicluster engine for Kubernetes 2.8 multicluster-engine/console-mce-rhel9 1787259048fixed: vendor fix RHSA-2026:59558
-
Red Hat multicluster engine for Kubernetes 2.9 multicluster-engine/console-mce-rhel9 1787079359fixed: vendor fix RHSA-2026:59559
-
Red Hat multicluster engine for Kubernetes 2.17 multicluster-engine/console-mce-rhel9 1786668856fixed: vendor fix RHSA-2026:59593
-
Red Hat Advanced Cluster Management for Kubernetes 2.11 rhacm2/console-rhel9 1787687062fixed: vendor fix RHSA-2026:60387
-
Red Hat Advanced Cluster Management for Kubernetes 2.13 rhacm2/console-rhel9 1787339249fixed: vendor fix RHSA-2026:60390
-
Red Hat Advanced Cluster Management for Kubernetes 2.14 rhacm2/console-rhel9 1787339248fixed: vendor fix RHSA-2026:60388
-
Red Hat Advanced Cluster Management for Kubernetes 2.17 rhacm2/console-rhel9 1787335105fixed: vendor fix RHSA-2026:60386
-
Red Hat Ansible Automation Platform 2.1 ansible-automation-platform/automation-portal 1788775748fixed: vendor fix RHSA-2026:65118
-
Red Hat Ansible Automation Platform 2.2 ansible-automation-platform/automation-portal 1788783591fixed: vendor fix RHSA-2026:65155
-
Red Hat Ansible Automation Platform 2.6 for RHEL 9 automation-platform-ui 2.6.14-1.el9apfixed: vendor fix RHSA-2026:71113
-
Red Hat Developer Hub 1.9 rhdh/rhdh-hub-rhel9 1789554285fixed: vendor fix RHSA-2026:69248
-
Red Hat Developer Hub 1.10 rhdh/rhdh-hub-rhel9 1791311495fixed: vendor fix RHSA-2026:79088
-
Red Hat Discovery 2 discovery/discovery-ui-rhel9 1788206196fixed: vendor fix RHSA-2026:61783
-
Red Hat Hardened Images jaeger 2.20.0-0.7.hum1, grafana13.1 13.1.1-0.3.hum1, grafana13.2 13.2.0-0.1.1.hum1fixed: vendor fix RHSA-2026:48241
-
Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523fixed: vendor fix RHSA-2026:87410
-
Red Hat Openshift Data Foundation 4.19 odf4/odf-console-rhel9 1793126829fixed: vendor fix RHSA-2026:92650
-
Red Hat OpenShift Dev Spaces 3.30 devspaces/code-rhel9 1787762793, devspaces/openvsx-rhel9 1787759145fixed: vendor fix RHSA-2026:62260
-
Red Hat Quay 3.9 quay/quay-rhel8 1788595574fixed: vendor fix RHSA-2026:65514
-
Red Hat Quay 3.10 quay/quay-rhel8 1788561841fixed: vendor fix RHSA-2026:66084
-
Red Hat Quay 3.12 quay/quay-rhel8 1788594376fixed: vendor fix RHSA-2026:66523
-
Red Hat Quay 3.14 quay/quay-rhel8 1788593843fixed: vendor fix RHSA-2026:70267
-
Red Hat Quay 3.15 quay/quay-rhel8 1788191755fixed: vendor fix RHSA-2026:63307
-
Red Hat Quay 3.16 quay/quay-rhel9 1789563753fixed: vendor fix RHSA-2026:69255
3 more fixed, 43 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.16 >=4.0.0, <5.1.16 |
3.3.16 5.1.16 |
Affected products
- nanoid_project nanoid
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49
patch, web
-
vulncheck.com
/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module
third-party-advisory, web, patch, release-notes
-
github.com
/ai/nanoid/pull/600
web
-
github.com
/ai/nanoid/pull/601
web
-
github.com
/ai/nanoid/commit/e835c9b71eab832bc6106944bdd26ea96cf2c66d
web
-
github.com
/ai/nanoid/releases/tag/5.1.16
release-notes, web, product
-
github.com
/ai/nanoid/releases/tag/3.3.16
release-notes, product
-
nvd.nist.gov
/vuln/detail/CVE-2026-67214
advisory
-
github.com
/ai/nanoid
package
Sources
- CVE List CVE-2026-67214
- GitHub Advisory GHSA-28wg-ghj8-5hjv
- NVD CVE-2026-67214
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.