Vulnerability
CVE-2026-44974
@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.
25 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-3pmr-239g-h8c3
- CGA-42jr-5wpm-j24q
- CGA-4m7c-g9pq-73gv
- CGA-4wxp-qj6j-c9pv
- CGA-639q-qxgf-2h42
- CGA-795x-fxg8-g3q9
- CGA-834f-947h-34h8
- CGA-998v-4mq5-29vw
- CGA-9wcv-3cvq-p8xj
- CGA-cxmf-v9qv-m68q
- CGA-g62x-4rc5-mw66
- CGA-g966-rw8g-34jr
- CGA-gggm-ppgj-c854
- CGA-gqqg-q7wg-rj54
- CGA-hjcx-cf5p-qf8j
- CGA-m6cp-fwxw-6xph
- CGA-mp7r-mxf7-3wpj
- CGA-p523-643g-rw39
- CGA-qvjr-2hv4-5mf6
- CGA-qxpq-3264-c32v
- CGA-r64m-j2m2-qrfc
- CGA-xp25-r7vm-9455
- CGA-xw29-6898-6m8x
- CGA-xwm9-2wg9-2gmf
-
GHSA-36hh-x5p5-jgc8
@hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters