GHSA-jg4p-7fhp-p32p

Suggest an improvement
Source
https://github.com/advisories/GHSA-jg4p-7fhp-p32p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-jg4p-7fhp-p32p/GHSA-jg4p-7fhp-p32p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jg4p-7fhp-p32p
Aliases
  • CVE-2026-35213
Published
2026-04-04T04:23:03Z
Modified
2026-04-04T04:32:35.502194Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
@hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header parsing
Details

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.

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.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-04T04:23:03Z",
    "severity": "HIGH",
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-1333"
    ]
}
References

Affected packages

npm / @hapi/content

Package

Name
@hapi/content
View open source insights on deps.dev
Purl
pkg:npm/%40hapi/content

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.1

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"