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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-835"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67214.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "5.1.16"
},
{
"fixed": "3.3.16"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "5.1.16"
},
{
"fixed": "3.3.16"
}
],
"source": "CPE_FIELD",
"strategy": "CPEApplicability"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "3.3.16"
}
],
"source": "DESCRIPTION"
}
]
}
]
}{
"extracted_events": [
{
"original_tag": "5.1.16",
"range": [
{
"fixed": "6ccc67bbaba71d3d77a21d9b636f4171a268ce49"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "3.3.16",
"range": [
{
"fixed": "9760e112757cf7d46a79abd7a133bc4958757bb8"
}
],
"source": "REFERENCES_TAG"
},
{
"range": [
{
"fixed": "6ccc67bbaba71d3d77a21d9b636f4171a268ce49"
}
],
"source": "REFERENCES_COMMIT"
}
]
}