CVE-2026-67213

HIGHCVSS 7.5/10EPSS 0.32%

Last modified

CVE-2026-67213 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
Nanoid ProjectNanoid>= 3.0.0, < 3.3.17
Nanoid ProjectNanoid>= 5.0.0, < 5.1.6

References

Timeline

Published
Last Modified
Status
Analyzed

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.
How severe is CVE-2026-67213?
CVE-2026-67213 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 0.32% probability of exploitation in the next 30 days.
How do I fix CVE-2026-67213?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-67213?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST