{"id":"CVE-2026-44974","aliases":["CVE-2026-44974","GHSA-36hh-x5p5-jgc8"],"related":[],"kind":"vulnerability","state":"published","title":"Parameter smuggling in @hapi/content header parser allows upload-filter bypass via duplicate parameters","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe two parsers resolved duplicates inconsistently and silently:\n- `Content.disposition()` retained the last occurrence of each parameter.\n- `Content.type()` retained the first occurrence of charset and boundary.\n\nEither behavior creates a parameter-smuggling primitive when another component in the request-processing chain (a WAF, reverse proxy, security filter, or alternate parser) resolves duplicates the opposite way. The primary attack vector is upload filename allowlist bypass:\n\n`Content-Disposition: form-data; name=\"file\"; filename=\"safe.txt\"; filename=\"shell.php\"`\n\n### Patches\nThe issue has been patched in 6.0.2.\n\n### Workarounds\nPre or post validate headers looking for duplicates.\n\n### Resources\n- [RFC 6266 §4.1 — Content-Disposition syntax](https://www.rfc-editor.org/rfc/rfc6266#section-4.1)\n- [RFC 7231 §3.1.1.1 — Content-Type syntax](https://www.rfc-editor.org/rfc/rfc7231#section-3.1.1.1)\n- [RFC 7230 §3.2.6 — token character set](https://www.rfc-editor.org/rfc/rfc7230#section-3.2.6)","format":"markdown","source":"ghsa"},{"lang":"es","text":"@hapi/content proporcionaba el análisis de los encabezados HTTP Content-*. Antes de la versión 6.0.2, Content.disposition() retenía la última ocurrencia de cada parámetro duplicado, mientras que Content.type() retenía la primera ocurrencia de los parámetros duplicados ’charset’ y ’boundary’, creando una primitiva de contrabando de parámetros cuando otro componente en la cadena de procesamiento de solicitudes resolvía los duplicados de la manera opuesta. Esto puede permitir una omisión de la lista blanca de nombres de archivo de carga en encabezados como Content-Disposition: form-data; name=’file’; filename=’safe.txt’; filename=’shell.PHP’. Este problema está solucionado en la versión 6.0.2.","source":"nvd"}],"published":"2026-05-27T00:37:20.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"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","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"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","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"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","rating":"HIGH"}],"cwes":["CWE-436"],"affected":[{"ranges":[{"version":"< 6.0.2","status":"affected"}],"vendor":"hapijs","product":"content","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.2"}],"ecosystem":"npm","package":"@hapi/content","purl":"pkg:npm/%40hapi/content","source":"ghsa"}],"references":[{"url":"https://github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hapijs/content/commit/3850079550c191d25e3643dc82a6d61144db8c2f","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hapijs/content","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-07-21T02:14:35.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44974","url":"https://www.cve.org/CVERecord?id=CVE-2026-44974","licence":"CVE Terms of Use","modified":"2026-07-21T02:16:04.352Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-36hh-x5p5-jgc8","url":"https://github.com/advisories/GHSA-36hh-x5p5-jgc8","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.335Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44974","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44974","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.522Z","epss":{"score":0.00344,"percentile":0.29911,"date":"2026-12-01T12:00:22.000Z"}}