Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/content
  4. ›
  5. CVE-2026-44974

CVE-2026-44974: @hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters

May 27, 2026

The two parsers resolved duplicates inconsistently and silently:

  • Content.disposition() retained the last occurrence of each parameter.
  • Content.type() retained the first occurrence of charset and boundary.

Either 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:

Content-Disposition: form-data; name="file"; filename="safe.txt"; filename="shell.php"

References

  • github.com/advisories/GHSA-36hh-x5p5-jgc8
  • github.com/hapijs/content/commit/3850079550c191d25e3643dc82a6d61144db8c2f
  • github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8
  • nvd.nist.gov/vuln/detail/CVE-2026-44974

Code Behaviors & Features

Detect and mitigate CVE-2026-44974 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.0.2

Fixed versions

  • 6.0.2

Solution

Upgrade to version 6.0.2 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

npm/@hapi/content/CVE-2026-44974.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:55 +0000.