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"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.3.16"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "5.1.16"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6ccc67bbaba71d3d77a21d9b636f4171a268ce49"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "3.3.16",
"range": [
{
"fixed": "9760e112757cf7d46a79abd7a133bc4958757bb8"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "5.1.16",
"range": [
{
"fixed": "6ccc67bbaba71d3d77a21d9b636f4171a268ce49"
}
],
"source": "REFERENCES_TAG"
}
]
}