Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M

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

High 7.7

In plain English

A high-severity security flaw in content from hapijs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@hapi/content6.0.2GHSA-36hh-x5p5-jgc8

Affected products (as reported)

VendorProductVersions
hapijs content < 6.0.2

Weakness: CWE-436 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N

References