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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-67213— nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom

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.6之前版本存在资源管理错误漏洞,该漏洞源于customAlphabet和customRandom函数存在无限循环,当这些函数配置size为0时,内部生成循环永远无法满足退出条件,导致线程挂起,可能造成拒绝服务。

CVSS 5.9 · Medium EPSS 0.59% · P46

Affected Version Matrix 2

VendorProduct Version RangeStatus
nanoid_project nanoid 3.0.0< 3.3.17 affected
5.0.0< 5.1.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-67213

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 before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom
Source: CVE Program / CVE List V5
Vulnerability 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.
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.6之前版本存在资源管理错误漏洞,该漏洞源于customAlphabet和customRandom函数存在无限循环,当这些函数配置size为0时,内部生成循环永远无法满足退出条件,导致线程挂起,可能造成拒绝服务。
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 3.0.0 ~ 3.3.17 -

II. Public POCs for CVE-2026-67213

# 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-67213

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

Patches & Fixes for CVE-2026-67213 (1)

Vendor Advisories for CVE-2026-67213 (1)

Vendor Pages for CVE-2026-67213 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-67213

No comments yet


Leave a comment