Advisory

GHSA-jg4p-7fhp-p32p

Also known as: CVE-2026-115728, CVE-2026-35213

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. 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-04 04:23 UTC
Modified
2026-10-24 02:55 UTC

Affected packages and fixes

@hapi/content

npm · All systems

Affected

  • introduced 0, fixed 6.0.1 (semver)

Fixed versions

6.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences