{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-67214","id":"CVE-2026-67214","title":"nanoid Infinite Loop via Negative Size in non-secure module","description":"nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented from a negative value and never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that passes an unvalidated,","descriptionLong":"nanoid (Nano ID) before 3.3.16 and 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented from a negative value and never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that passes an unvalidated, attacker-controlled negative size to these functions is exposed to a denial-of-service condition.","published":"2026-07-29T13:32:02.265Z","updated":"2026-10-31T02:30:46.276132674Z","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":"unaffected","versions":[{"version":"4.0.0","status":"affected","versionType":"semver","lessThan":"5.1.16"},{"version":"5.1.16","status":"unaffected","versionType":"semver"},{"status":"affected","version":"0","versionType":"semver","lessThan":"3.3.16"},{"status":"unaffected","version":"3.3.16","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"nanoid","purl":"pkg:npm/nanoid","ranges":["<3.3.16",">=4.0.0 <5.1.16"],"fixed":["3.3.16","5.1.16"],"advisory":"GHSA-28wg-ghj8-5hjv"}],"cwes":["CWE-835"],"aliases":["GHSA-28wg-ghj8-5hjv"],"references":[{"url":"https://github.com/ai/nanoid/releases/tag/5.1.16","tags":["release-notes","Product","Release Notes","advisory","web"]},{"url":"https://github.com/ai/nanoid/releases/tag/3.3.16","tags":["release-notes","Product","Release Notes","advisory"]},{"url":"https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49","tags":["patch","Patch","fix","web"]},{"url":"https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module","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-67214.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67214","tags":["advisory"]},{"url":"https://github.com/ai/nanoid/pull/600","tags":["web"]},{"url":"https://github.com/ai/nanoid/pull/601","tags":["web"]},{"url":"https://github.com/ai/nanoid/commit/e835c9b71eab832bc6106944bdd26ea96cf2c66d","tags":["web"]},{"url":"https://github.com/ai/nanoid","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0033,"epssPercentile":0.26642,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-67214","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67214","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-67214","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-28wg-ghj8-5hjv","ok":true,"note":"GHSA-28wg-ghj8-5hjv"},{"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-67214","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}