CVE-2026-67214
Analyzed Analyzed - Analysis Complete

Infinite Loop Denial-of-Service in Nano ID Non-Secure Module

Vulnerability report for CVE-2026-67214, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-29

Last updated on: 2026-08-18

Assigner: VulnCheck

Description

nanoid (Nano ID) before 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-29
Last Modified
2026-08-18
Generated
2026-08-19
AI Q&A
2026-07-30
EPSS Evaluated
2026-08-18
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nanoid_project nanoid to 5.1.16 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-835 The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an infinite loop flaw in the Nano ID library before version 5.1.16. It occurs in the non-secure module's customAlphabet and nanoid functions when a negative size is provided. The loop counter decrements from a negative value and never meets the termination condition, causing the thread to hang indefinitely. This results in a denial-of-service condition for any application using these functions with unvalidated, attacker-controlled negative input.

Detection Guidance

This vulnerability is specific to the nanoid library and can be detected by checking the installed version of nanoid. If your application uses nanoid and the version is below 5.1.16, it is vulnerable. Run: npm list nanoid or check the package.json file for the version.

Impact Analysis

If you use the affected Nano ID library versions in your application, an attacker could exploit this flaw by providing a negative size value. This would cause your application to hang or crash, leading to degraded performance or complete unavailability. Systems relying on Nano ID for unique ID generation could become unresponsive, disrupting services and user access.

Compliance Impact

This vulnerability could impact compliance by causing service disruptions or data processing delays, potentially violating availability requirements in GDPR and HIPAA. Downtime from a denial-of-service condition may lead to breaches of service level agreements or regulatory timeframes for data access and processing.

Mitigation Strategies

Upgrade the nanoid library to version 5.1.16 or later. For npm projects, run: npm install nanoid@latest. For other package managers, update the dependency accordingly. Ensure no code passes unvalidated negative sizes to nanoid functions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-67214. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart