Skip to content
OpenAdvisories
High · 7.7 CVE-2026-44974 EUVD-2026-45313GHSA-36hh-x5p5-jgc8

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

Published Jul 17, 2026 · Updated Jul 21, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
hapijs content < 6.0.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling opensearch-dashboards-3 3.7.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @hapi/content < 6.0.2 6.0.2 GHSA-36hh-x5p5-jgc8

References