Vulnerability GHSA-36hh-x5p5-jgc8

High Risk
HIGH RISK
CVSS Score: 8.0
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
5 months ago
May 27, 2026 at 12:37 AM UTC
@hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters
4.1.0 - 6.0.1
4.1.0 - 6.0.1

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

Impacted packages

Timeline

Published
5 months ago
May 27, 2026 at 12:37 AM UTC
Fixed (6.0.2)
5 months ago
May 06, 2026 at 08:40 AM UTC
Last Modified
1 month ago
September 10, 2026 at 03:51 AM UTC