Regular Expression Denial of Service (ReDoS) in @hapi/content HTTP header parsing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hapijs | content | before 6.0.1 | 6.0.1 | Patch available | CNA |
| — | @hapi/content (npm) | before 6.0.1 | 6.0.1 | Patch available | GHSA-jg4p-7fhp-p32p |
- content Vendorhapijs Affected before 6.0.1 Fixed in 6.0.1 Patch available CNA
- @hapi/content (npm) Vendor— Affected before 6.0.1 Fixed in 6.0.1 Patch available GHSA-jg4p-7fhp-p32p
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:content_project:content:*:*:*:*:*:node.js:*:* | before 6.0.1 | Vulnerable | Content Project |
- cpe:2.3:a:content_project:content:*:*:*:*:*:node.js:*:* Versions before 6.0.1 Vulnerable ·Content Project
Remediation
- Fix · CNA content (hapijs) Fixed in 6.0.1
- Fix · GHSA-jg4p-7fhp-p32p @hapi/content (npm) Fixed in 6.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-35213
- 2026-10-03 Alias added: GHSA-jg4p-7fhp-p32p
References
More hapijs vulnerabilities
- TI-2026-82752 Quadratic-time parsing in @hapi/content allows denial of service CVSS 3.1HIGH 7.5
- TI-2026-82716 Quadratic-time split in joi email rule allows denial of service CVSS 3.1HIGH 7.5
- TI-2026-61678 joi before 17.13.8 and 18.2.9 Prototype Pollution via messages CVSS 4.0MEDIUM 6.3
- TI-2018-02726 Prototype pollution in @hapi hoek node module CVSS 3.0HIGH 8.8
- TI-2026-79747 Regular expression denial of service in @hapi/content disposition parsing CVSS 4.0HIGH 8.7
- TI-2026-62455 Joi before 17.13.7 and 18.2.6 ReDoS via isoDate CVSS 4.0HIGH 8.7
Sources
- CVE-2026-35213 · CVE Program
- CVE-2026-35213 · NVD
- FIRST EPSS
- GHSA-jg4p-7fhp-p32p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences