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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-835"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67213.json"
}{
"extracted_events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.3.17"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.1.6"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*"
}