PoC Monitor
← All CVEs
CVE-2026-67213published 29 Jul 2026 13:32 UTCData: JSON · API

Nanoid_project nanoid

nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-835
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

nanoid_project nanoid
  • >= 3.0.0, < 3.3.17
  • >= 5.0.0, < 5.1.6

Fixed in 3.3.17, 5.1.6

Mitigation

Upgrade nanoid to 3.3.17 or 5.1.6 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published29 Jul 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.