Advisory

GHSA-36hh-x5p5-jgc8

Also known as: CVE-2026-44974

Summary

@hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters

Details

Impact
The two parsers resolved duplicates inconsistently and silently:

  • Content.disposition() retained the last occurrence of each parameter.
  • Content.type() retained the first occurrence of charset and boundary.

Either behavior creates a parameter-smuggling primitive when another component in the request-processing chain (a WAF, reverse proxy, security filter, or alternate parser) resolves duplicates the opposite way. The primary attack vector is upload filename allowlist bypass:

Content-Disposition: form-data; name="file"; filename="safe.txt"; filename="shell.php"

Patches
The issue has been patched in 6.0.2.

Workarounds
Pre or post validate headers looking for duplicates.

Resources

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-27 00:37 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

@hapi/content

npm · All systems

Affected

  • introduced 0, fixed 6.0.2 (semver)

Fixed versions

6.0.2

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