cve.bz

CVE-2026-67214 nanoid project nanoid: Infinite Loop

8.2 highEPSS 0.3%Fix available

High (8.2) in nanoid project nanoid. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in nanoid 3.3.16, 5.1.16.

On this page
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.

Severity

CVSS 4.0

8.2 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-67214 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-67214?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-67214?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-67214 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nanoid_project nanoidfrom 4.0.0 before 5.1.16
nanoid_project nanoidbefore 3.3.16

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-28wg-ghj8-5hjvnpmnanoid<3.3.163.3.16
GHSA-28wg-ghj8-5hjvnpmnanoid>=4.0.0 <5.1.165.1.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-postcssno fix listedDEBIAN-CVE-2026-67214
Debian12, 13, 14node-mocha9.1.4+ds1+~cs28.2.8-1DEBIAN-CVE-2026-67214
Debian14node-postcss8.5.15+~cs9.3.39-1DEBIAN-CVE-2026-67214
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 1 morenode-postcssno fix listedUBUNTU-CVE-2026-67214
Red Hathummingbird:1grafana13.10:13.1.1-0.3.hum1RHSA-2026:48241
Red Hathummingbird:1grafana13.20:13.2.0-0.1.1.hum1RHSA-2026:59030
Red Hathummingbird:1jaeger0:2.20.0-0.7.hum1RHSA-2026:48320

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An input validation flaw in Nano ID's non-secure module (`nanoid/non-secure`) causes an infinite loop in the `customAlphabet` and `nanoid` functions when processed with a negative size parameter. Because the decrementing loop counter never meets its termination condition, an unauthenticated attacker who passes an unvalidated negative integer value can block the NodeJS event loop, resulting in a thread hang and complete Denial of Service (DoS) for the host application.

Red Hat's mitigation

Sanitize all user-supplied integer inputs before passing them to `nanoid` or `customAlphabet` functions in the `nanoid/non-secure` module, ensuring the size parameter is strictly a non-negative integer.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-platform-ui-0:2.6.14-1.el9apFixed 2026-09-23RHSA-2026:71113
multicluster engine for Kubernetes 2.17multicluster-engine/console-mce-rhel9:1786668856Fixed 2026-08-25RHSA-2026:59593
multicluster engine for Kubernetes 2.8multicluster-engine/console-mce-rhel9:1787259048Fixed 2026-08-25RHSA-2026:59558
multicluster engine for Kubernetes 2.9multicluster-engine/console-mce-rhel9:1787079359Fixed 2026-08-25RHSA-2026:59559
Red Hat Advanced Cluster Management for Kubernetes 2.11rhacm2/console-rhel9:1787687062Fixed 2026-08-26RHSA-2026:60387
Red Hat Advanced Cluster Management for Kubernetes 2.13rhacm2/console-rhel9:1787339249Fixed 2026-08-26RHSA-2026:60390
Red Hat Advanced Cluster Management for Kubernetes 2.14rhacm2/console-rhel9:1787339248Fixed 2026-08-26RHSA-2026:60388
Red Hat Advanced Cluster Management for Kubernetes 2.17rhacm2/console-rhel9:1787335105Fixed 2026-08-26RHSA-2026:60386
Red Hat Ansible Automation Platform 2.1ansible-automation-platform/automation-portal:1788775748Fixed 2026-09-08RHSA-2026:65118
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/automation-portal:1788783591Fixed 2026-09-08RHSA-2026:65155
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Will not fix
Network Observability Operatornetwork-observability/network-observability-console-plugin-pf5-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorAffected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel9Affected
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Not affected
67 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-67214.

References

Check your stackJSON