@hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header 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 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.
- Products
- @hapi/content
- Affected versions
- Not specified
- Fixed versions
- 6.0.1
- CVEs
- CVE-2026-115728, CVE-2026-35213
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 03:38 UTC · Revision 1
Source evidence
@hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header parsing
core-osv · Original sourcePublished 4 Apr 2026, 04:23 UTC
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.
osv:GHSA-jg4p-7fhp-p32p
@hapi/content
Fixed versions: 6.0.1
Complete source record
{
"id": "51ae2bc0a0af18f41af80f522dd5ede4bd206469a67dc2973285f5d7ea2767a1",
"url": "https://osv.dev/vulnerability/GHSA-jg4p-7fhp-p32p",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "@hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header parsing",
"summary": "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.",
"evidence": "osv:GHSA-jg4p-7fhp-p32p",
"products": [
{
"name": {
"value": "@hapi/content",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.0.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "GHSA-jg4p-7fhp-p32p",
"aliases": [
"CVE-2026-115728",
"CVE-2026-35213",
"GHSA-jg4p-7fhp-p32p"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.0.1"
}
]
}
],
"package": {
"name": "@hapi/content",
"purl": "pkg:npm/%40hapi/content",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-jg4p-7fhp-p32p/GHSA-jg4p-7fhp-p32p.json",
"last_known_affected_version_range": "<= 6.0.0"
}
}
],
"modified": "2026-10-24T02:55:33.217626279Z",
"provider": "osv",
"references": [
"https://github.com/hapijs/content/security/advisories/GHSA-jg4p-7fhp-p32p",
"https://nvd.nist.gov/vuln/detail/CVE-2026-35213",
"https://github.com/hapijs/content/pull/38",
"https://github.com/hapijs/content"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2026-04-06T21:16:20Z",
"github_reviewed_at": "2026-04-04T04:23:03Z"
}
},
"related_cves": [
{
"value": "CVE-2026-115728",
"evidence": "/aliases"
},
{
"value": "CVE-2026-35213",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 428173,
"published_at": "2026-04-04T04:23:03+00:00"
}