NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 4.0 7.7GHSA-36hh-x5p5-jgc8

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.

Published May 27, 2026

Affected packages

@hapi/content

Ecosystem
npm
Affected
< 6.0.2
Fixed in
6.0.2
Check
npm ls @hapi/content

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to threalwinky.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries