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.
Severity (CVSS)
| Base score | 7.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-436 — CWE-436: Interpretation Conflict
Affected products
| Vendor | Product | Versions |
|---|---|---|
| hapijs | content | < 6.0.2 |
References
- https://github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8 (x_refsource_CONFIRM)
- https://github.com/hapijs/content/commit/3850079550c191d25e3643dc82a6d61144db8c2f (x_refsource_MISC)
Generated from the official CVE List on 18 Jul 2026 07:00 UTC.