A AegiFlow
HIGHCVSS 8.2EPSS 0.3%

CVE-2026-67213

CVE-2026-67213 updated by NVD

Published
2026-07-29
Modified
2026-09-21
EPSS percentile
25%
Sources
github-advisory, nvd, osv

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
npmnanoid5.1.6
npmnanoid5.1.6, 3.3.18

Remediation: Upgrade to 5.1.6 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

Includes data from OSV.dev.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.