7.5high
A flaw in Node.js HTTP request handling causes an uncaught TypeError when a request is received with a header named proto and the applicati…
- Severity
- 7.5high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 29.1% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- BIT-NODE-2026-21710BIT-NODE-MIN-2026-21710
Description
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`. * This vulnerability affects all Node.js HTTP servers on **20.x, 22.x, 24.x, and v25.x**
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nodejs node | from 20.20.1 up to 20.20.1, from 22.22.1 up to 22.22.1, from 24.14.0 up to 24.14.0, from 25.8.1 up to 25.8.1, from 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.* and 12 more | CVE List |
| nodejs22 | Not specified Not affected: from 1:22.22.2-1.el10_1 before *, from 1:22.22.2-2.el10_0 before * | CVE List |
| nodejs24 | Not specified Not affected: from 1:24.14.1-2.el10_1 before * | CVE List |
| nodejs:22 | Not specified Not affected: from 8100020260331102257.6d880403 before *, from 9070020260401095228.rhel9 before *, from 9060020260409121057.rhel9 before * | CVE List |
| nodejs:24 | Not specified Not affected: from 8100020260408131901.6d880403 before *, from 9070020260402152654.rhel9 before * | CVE List |
| nodejs:20 | Not specified Not affected: from 8100020260414073138.489197e6 before *, from 9070020260409073121.rhel9 before *, from 9040020260421133644.rhel9 before *, from 9060020260422064119.rhel9 before * | CVE List |
| nodejs node.js | up to 20.20.1, from 22.0.0 up to 22.22.1, from 24.0.0 up to 24.14.0, from 25.0.0 up to 25.8.1 | NVD |
| redhat enterprise_linux | 8.0, 9.0, 10.0 | NVD |
| redhat enterprise_linux_eus | 9.4, 9.6, 10.0 | NVD |
| node (Bitnami) | before 20.20.2, from 21.0.0 before 22.22.2, from 23.0.0 before 24.14.1, from 25.0.0 before 25.8.2 | Bitnami Vulnerability Database |
| node-min (Bitnami) | before 20.20.2, from 21.0.0 before 22.22.2, from 23.0.0 before 24.14.1, from 25.0.0 before 25.8.2 | Bitnami Vulnerability Database |
All scores
| hackerone | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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`. * This vulnerability affects all Node.js HTTP servers on **20.x, 22.x, 24.x, and v25.x**
NVD (es)
Un fallo en el manejo de solicitudes HTTP de Node.js provoca un 'TypeError' no capturado cuando se recibe una solicitud con un encabezado llamado '__proto__' y la aplicación accede a 'req.headersDistinct'. Cuando esto ocurre, 'dest["__proto__"]' se resuelve como 'Object.prototype' en lugar de 'undefined', lo que provoca que se llame a '.push()' en un no-array. Esta excepción se lanza sincrónicamente dentro de un accesor de propiedad y no puede ser interceptada por los oyentes de eventos 'error', lo que significa que no puede ser manejada sin envolver cada acceso a 'req.headersDistinct' en un 'try/catch'. * Esta vulnerabilidad afecta a todos los servidores HTTP de Node.js en 20.x, 22.x, 24.x y v25.x
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-21710 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2026-21710 changed 2026-08-19 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2026-21710 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2026-21710 changed 2026-09-08 | Apache-2.0 |