Skip to content

CVE-2026-44974 Parameter smuggling in @hapi/content header parser allows upload-filter bypass via duplicate parameters

HighCVSS 7.7 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
PHP

Description

@hapi/content provided HTTP Content-* headers parsing. Prior to 6.0.2, Content.disposition() retained the last occurrence of each duplicate parameter while Content.type() retained the first occurrence of duplicate charset and boundary parameters, creating a parameter-smuggling primitive when another component in the request-processing chain resolves duplicates the opposite way. This can allow an upload filename allowlist bypass in headers such as Content-Disposition: form-data; name="file"; filename="safe.txt"; filename="shell.php". This issue is fixed in version 6.0.2.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
hapi @hapi/content(npm) < 6.0.2 6.0.2 Fixed
hapijs content = < 6.0.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
hapijs content = < 6.0.2 No fix listed
hapi @hapi/content(npm) < 6.0.2 6.0.2

References