CVE-2026-44974 Details
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.
A parameter smuggling vulnerability has been identified in the @hapi/content package, specifically in versions prior to 6.0.2. The issue arises from inconsistent handling of duplicate parameters in HTTP Content headers. The Content.disposition() method retains the last occurrence of each parameter, while Content.type() keeps the first occurrence of duplicate charset and boundary parameters. This discrepancy can be exploited when another component in the request-processing chain resolves duplicates in the opposite manner, creating a parameter-smuggling primitive. The primary exploitation vector involves bypassing upload filename allowlists by manipulating headers such as Content-Disposition.
Users are advised to update to @hapi/content version 6.0.2 or later, and to validate headers for duplicate parameters before or after processing.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2026CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/hapijs/content/commit/3850079550c191d25e3643dc82a6d61144db8c2f | [email protected] | Source CodeVendor |
| https://github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @hapi/content | < 6.0.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | New CVE Received | [email protected] |
Volerion