Skip to main content
MEDIUM

CVE-2026-67213

CVSS v3

5.9

MEDIUM

EPSS Score

0.6 %

exploit probability, as of 2026-10-16

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for nanoid. Watch nanoid in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nanoidnpmfrom 4.0.0 · fixed in 5.1.6

Vendor advisories

  • CVE-2026-67213 Red Hat Product Security80 products fixed · 37 known affected

    nanoid: nanoid: Denial of Service via infinite loop in random ID generation

    rhmtc/openshift-migration-ui-rhel8 as a component of Migration Toolkit for Containers · workload-availability/node-healthcheck-must-gather-rhel9 as a component of Node HealthCheck Operator · workload-availability/node-healthcheck-operator-bundle as a component of Node HealthCheck Operator

  • RHSA-2026:79088 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.10.5 release.

  • RHSA-2026:74380 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.20.41 bug fix and security update

  • RHSA-2026:74429 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.22.17 bug fix and security update

  • RHSA-2026:74383 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.21.36 bug fix and security update

  • RHSA-2026:74511 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Quay 3.17.5

21 more advisories

Full record on NVD

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.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-07-29
Last Modified
2026-07-30

Frequently asked questions

What is CVE-2026-67213?

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.

Is CVE-2026-67213 actively exploited?

Active exploitation of CVE-2026-67213 has not been confirmed. Its EPSS score was 0.6% on 2026-10-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-67213?

CVE-2026-67213 has a CVSS v3 base score of 5.9 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running nanoid? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key