Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-67214— nanoid Infinite Loop via Negative Size in non-secure module

Quick assessment

Affected
nanoid_project nanoid
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Andrey Sitnik nanoid是Andrey Sitnik个人开发者开源的一个用于 JavaScript 的小型、安全、URL 友好、唯一的字符串 ID 生成器。 Andrey Sitnik Nano ID 5.1.16之前版本存在资源管理错误漏洞,该漏洞源于customAlphabet和nanoid函数存在无限循环,当函数被赋予一个负数大小时,循环计数器从负值递减且永远不会达到终止条件,导致无限循环并挂起调用线程,可能造成拒绝服务。

CVSS 5.9 · Medium EPSS 0.33% · P24

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 4

VendorProduct Version RangeStatus
nanoid_project nanoid < 5.1.16 affected
5.1.16 unaffected
< 3.3.16 affected
3.3.16 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-67214

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
nanoid Infinite Loop via Negative Size in non-secure module
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
不可达退出条件的循环(无限循环)
Source: CVE Program / CVE List V5
Vulnerability Title
Andrey Sitnik Nano ID 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Andrey Sitnik nanoid是Andrey Sitnik个人开发者开源的一个用于 JavaScript 的小型、安全、URL 友好、唯一的字符串 ID 生成器。 Andrey Sitnik Nano ID 5.1.16之前版本存在资源管理错误漏洞,该漏洞源于customAlphabet和nanoid函数存在无限循环,当函数被赋予一个负数大小时,循环计数器从负值递减且永远不会达到终止条件,导致无限循环并挂起调用线程,可能造成拒绝服务。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nanoid_project nanoid 0 ~ 5.1.16 -

II. Public POCs for CVE-2026-67214

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-67214

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-67214 (2)

Vendor Advisories for CVE-2026-67214 (1)

Vendor Pages for CVE-2026-67214 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-67214

No comments yet


Leave a comment