Live threats

All CVEs / Nanoid Project

CVE-2026-67214Nanoid Project Nanoid

High 8.2 No auth needed

Priority
64
CVSS 4.0
8.2
EPSS
—
Auth required
No
Published
Jul 29, 2026
Updated
Oct 29, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nanoid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm nanoid < 3.3.16 3.3.16 npm install nanoid@3.3.16
npm nanoid ≥ 4.0.0 < 5.1.16 5.1.16 npm install nanoid@5.1.16

Per OSV / GitHub Advisories (GHSA-28wg-ghj8-5hjv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nanoid_projectnanoid< 3.3.16
nanoid_projectnanoid≥ 4.0.0 < 5.1.16

Official advisories

Also: Red Hat (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.