CVE-2026-44974: @hapi/content @hapi/content Header Parser Has A Vulnerability
HIGHCVE-2026-44974 is a HIGH @hapi/content header parser has a vulnerability (CWE-436: Interpretation Conflict) affecting @hapi/content libraries in the npm ecosystem. The issue involves @hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters. Remediation is available by upgrading affected packages to version 6.0.2.
CVE-2026-44974 at a Glance
How to Fix CVE-2026-44974
To remediate this vulnerability, upgrade all affected @hapi/content dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @hapi/content@6.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @hapi/content
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-44974, inspect your project dependencies using npm:
npm ls @hapi/content
Analyze the terminal output to locate any version of @hapi/content in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.2), your application is affected.
Note: The npm ls @hapi/content command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-436: Interpretation Conflict, where product a handles inputs or steps differently than product b, which causes a to perform incorrect actions based on its perception of b's state. In @hapi/content, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44974 Affected @hapi/content Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@hapi/content
|
npm |
< 6.0.2
|
6.0.2
|
References
Frequently Asked Questions
What is CVE-2026-44974?
Which @hapi/content versions are affected?
What version fixes CVE-2026-44974?
Is @hapi/content affected?
What CWE is associated with CVE-2026-44974?
How can I check npm dependencies for CVE-2026-44974?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-36hh-x5p5-jgc8",
"modified" : "2026-05-27T00:37:20Z",
"published" : "2026-05-27T00:37:20Z",
"aliases" : [ "CVE-2026-44974" ],
"summary" : "@hapi/content header parser has a parameter smuggling issue that allows upload-filter bypass via duplicate parameters",
"details" : "### 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)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@hapi/content"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8"
}, {
"type" : "WEB",
"url" : "https://github.com/hapijs/content/commit/3850079550c191d25e3643dc82a6d61144db8c2f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hapijs/content"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-436" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-27T00:37:20Z",
"nvd_published_at" : null
}
}