CVE-2026-35213
JSON

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 packageVersionsReported by
hapijs content< 6.0.1CVE List
@hapi/content (npm)before 6.0.1GitHub Advisory Database
content_project contentbefore 6.0.1NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-1333

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

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-35213 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-jg4p-7fhp-p32p changed 2026-10-24CC-BY-4.0
NVDCVE-2026-35213 changed 2026-07-24Public domain