A flaw in Node.js HTTP request handling causes an uncaught TypeError when a request is received with a header named __proto__ and the application accesses req.headersDistinct.
When this occurs, dest["__proto__"] resolves to Object.prototype rather than undefined, causing .push() to be called on a non-array. This exception is thrown synchronously inside a property getter and cannot be intercepted by error event listeners, meaning it cannot be handled without wrapping every req.headersDistinct access in a try/catch.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"nodejs:node.js": [
"<= 20.20.1",
">= 22.0.0, <= 22.22.1",
">= 24.0.0, <= 24.14.0",
">= 25.0.0, <= 25.8.1"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-21710",
"id": "CVE-2026-21710",
"imported": "2026-12-02T14:45:39.959Z",
"modified": "2026-08-19T14:32:04.833Z",
"published": "2026-03-30T20:16:18.210Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-21710"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-17170",
"id": "EUVD-2026-17170",
"imported": "2026-12-02T14:45:41.717Z",
"modified": "2026-07-15T01:19:57Z",
"published": "2026-03-30T19:07:28Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-17170"
}
]
}