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",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.3.17"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.1.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "5.1.6"
}
],
"source": "CPE_FIELD",
"strategy": "CPEApplicability"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "5.1.6"
}
],
"source": "DESCRIPTION"
}
]
}
]
}{
"extracted_events": [
{
"original_tag": "5.1.6",
"range": [
{
"fixed": "c6532dba6f3954b683bd77c71b352c1ee0ed9961"
}
],
"source": "REFERENCES_TAG"
},
{
"range": [
{
"fixed": "cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7"
}
],
"source": "REFERENCES_COMMIT"
}
]
}