{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-67213","id":"CVE-2026-67213","title":"nanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandom","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-servic","descriptionLong":"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.","published":"2026-07-29T13:32:01.534Z","updated":"2026-10-28T02:31:04.597426663Z","reserved":"2026-07-28T18:13:39.684Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"VulnCheck"},"metrics":[{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"VulnCheck"},{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"vulncheck.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"high","products":["nanoid_project nanoid"],"affectedProducts":[{"vendor":"nanoid_project","product":"nanoid","defaultStatus":"affected","versions":[{"version":"3.0.0","status":"affected","versionType":"semver","lessThan":"3.3.17"},{"status":"affected","version":"5.0.0","versionType":"semver","lessThan":"5.1.6"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"nanoid","purl":"pkg:npm/nanoid","ranges":["<3.3.18",">=4.0.0 <5.1.6"],"fixed":["3.3.18","5.1.6"],"advisory":"GHSA-2v37-7h3g-55p8"}],"cwes":["CWE-835"],"aliases":["GHSA-2v37-7h3g-55p8"],"references":[{"url":"https://github.com/ai/nanoid/releases/tag/5.1.6","tags":["release-notes","Product","Release Notes","advisory","web"]},{"url":"https://github.com/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7","tags":["patch","Patch","fix","web"]},{"url":"https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-zero-size-in-customalphabet-and-customrandom","tags":["third-party-advisory","Patch","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67213.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67213","tags":["advisory"]},{"url":"https://github.com/ai/nanoid/commit/e10f8d40ce9d1ab47f66d65a16b48086432730d0","tags":["web"]},{"url":"https://github.com/ai/nanoid/commit/f9d13f150847d117877adee3460a46eceb0cf49b","tags":["web"]},{"url":"https://github.com/ai/nanoid","tags":["package"]},{"url":"https://github.com/ai/nanoid/releases/tag/3.3.17","tags":["web"]},{"url":"https://github.com/ai/nanoid/releases/tag/3.3.18","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00331,"epssPercentile":0.26789,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-67213","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67213","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-67213","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2v37-7h3g-55p8","ok":true,"note":"GHSA-2v37-7h3g-55p8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-67213","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}