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.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.3%top 74.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npm@hapi/content6.0.1GHSA-jg4p-7fhp-p32p

Affected products (as reported)

VendorProductVersions
hapijs content < 6.0.1

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