8.7high
Regular Expression Denial of Service (ReDoS) in @hapi/content HTTP header parsing
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jg4p-7fhp-p32p
Description
@hapi/content provided HTTP Content-* headers parsing. All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking. This vulnerability is fixed in 6.0.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| hapijs content | < 6.0.1 | CVE List |
| @hapi/content (npm) | before 6.0.1 | GitHub Advisory Database |
| content_project content | before 6.0.1 | NVD |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
@hapi/content provided HTTP Content-* headers parsing. All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking. This vulnerability is fixed in 6.0.1.
GitHub Advisory Database
All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking. This has been fixed in v6.0.1.
Impact
Denial of Service. An unauthenticated remote attacker can cause a Node.js process to become unresponsive by sending a single HTTP request with a maliciously crafted header value.
Patches
Fixed by tightening all three regular expressions to eliminate backtracking.
Workarounds
There are no known workarounds. Upgrade to the patched version.
NVD (es)
@hapi/content proporcionaba el análisis de los encabezados HTTP Content-*. Todas las versiones de @hapi/content hasta la 6.0.0 son vulnerables a la Denegación de Servicio por Expresiones Regulares (ReDoS) a través de valores de encabezado HTTP especialmente diseñados. Tres expresiones regulares utilizadas para analizar los encabezados Content-Type y Content-Disposition contienen patrones susceptibles a retrocesos catastróficos. Esta vulnerabilidad está corregida en la versión 6.0.1.
References
| https://github.com/hapijs/content/security/advisories/GHSA-jg4p-7fhp-p32p | vendor-advisory, web | |
| https://github.com/hapijs/content/pull/38 | issue-tracking, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35213 | advisory | |
| https://github.com/hapijs/content | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35213 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jg4p-7fhp-p32p changed 2026-10-24 | CC-BY-4.0 |
| NVD | CVE-2026-35213 changed 2026-07-24 | Public domain |