Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M
CVE-2026-35213Regular Expression Denial of Service (ReDoS) in @hapi/content HTTP header parsing
High 8.7
In plain English
A high-severity regular-expression denial of service in content from hapijs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @hapi/content | 6.0.1 | GHSA-jg4p-7fhp-p32p |
Affected products (as reported)
Weakness: CWE-1333 · Vector: 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
References
- https://github.com/hapijs/content/security/advisories/GHSA-jg4p-7fhp-p32p x_refsource_CONFIRM
- https://github.com/hapijs/content/pull/38 x_refsource_MISC