Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Hapi upload endpoint behind allowlist filter
-
DeliverySend request with duplicate filename parameter
-
ExploitWAF validates benign first value
-
Execution@hapi/content resolves malicious last value
-
PersistMalicious file stored under executable name
-
ImpactTrigger uploaded web shell
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitation requires that a second component in the request path resolves duplicate header parameters differently from @hapi/content - specifically a fronting WAF, reverse proxy, security filter, or alternate parser that enforces an upload filename/type allowlist and picks the opposite duplicate (first vs last) than the Hapi application does. The reachable endpoint must parse multipart/form-data or Content-Type/Content-Disposition via @hapi/content < 6.0.2. No authentication or user interaction is needed (PR:N/UI:N). The key limiting factor: if the deployment does NOT have a divergent second parser or upstream allowlist relying on these headers, the duplicate-parameter primitive exists but yields no security-relevant bypass - impact is entirely dependent on that downstream inconsistency, which is why realized risk is narrower than the network-reachable CVSS suggests. |
| Impact | Signals are consistent and point to a real but moderate, context-dependent issue rather than an internet-wide emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms remote, unauthenticated, low-complexity reach with no user interaction, and impact is integrity-focused (VI:L with subsequent-system SI:H), reflecting that the damage lands on a downstream component whose filter is bypassed rather than direct confidentiality loss. EPSS is only 0.05% (17th percentile), there is no KEV listing, and no public exploit is identified, so widespread opportunistic exploitation is not indicated; realized impact depends entirely on whether the deployment relies on a second parser/WAF for upload filtering. Note a data-quality conflict: the intelligence Tags say 'PHP, Authentication Bypass', but the CPE (pkg:npm/@hapi/content), the reporting repo (hapijs/content), and the patch are all Node.js/Hapi.js - the 'PHP' tag is an artifact of the shell.php example filename, and 'authentication bypass' overstates it (the documented impact is upload allowlist bypass, not auth bypass). Treat product/language as Node.js, not PHP. |
| Exploit ScenarioDerived | An attacker uploads a file to a Hapi.js endpoint that enforces a filename extension allowlist at a fronting WAF or proxy, sending Content-Disposition: form-data; name="file"; filename="safe.txt"; filename="shell.php". The WAF validates the first value (safe.txt) and allows the request, while @hapi/content's disposition parser keeps the last value (shell.php), so the malicious file is written under an executable name - potentially leading to web-shell upload and code execution on a misconfigured server. The attack is remote, unauthenticated, and low-complexity (AV:N/AC:L/PR:N/UI:N); no public exploit is identified but the payload is trivial to construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 17, 2026
Parameter smuggling in @hapi/content (the header parser used by the Hapi.js framework) before 6.0.2 lets remote unauthenticated attackers bypass upload security controls by sending duplicate Content-Disposition or Content-Type parameters. Because Content.disposition() kept the last duplicate while Content.type() kept the first, a filename allowlist enforced by a WAF, reverse proxy, or alternate parser that resolves duplicates the opposite way can be evaded (e.g. filename="safe.txt"; filename="shell.php"). No public exploit identified at time of analysis and EPSS is very low (0.05%), but a vendor-released patch (6.0.2) is available and the technique is trivially reproducible.
Earlier versions of this analysis (1)
Upload filename allowlist bypass in the @hapi/content npm header parser (versions < 6.0.2) lets remote attackers smuggle malicious parameters past upstream validation. The library's Content.disposition() retained the last occurrence of a duplicated parameter while Content.type() retained the first occurrence of charset/boundary, so when a WAF, reverse proxy, or security filter resolves the same duplicate the opposite way, the two layers disagree on values such as the upload filename. No public exploit code or active exploitation has been identified; the GitHub Security Advisory (GHSA-36hh-x5p5-jgc8) documents the exact smuggling header but no CVSS score or EPSS data is provided.
RemediationAI
Vendor-released patch: 6.0.2 - upgrade @hapi/content to >= 6.0.2 (directly or by updating the parent Hapi packages that depend on it, then verifying the resolved version with npm ls @hapi/content), per advisory GHSA-36hh-x5p5-jgc8 (https://github.com/hapijs/content/security/advisories/GHSA-36hh-x5p5-jgc8). If you cannot upgrade immediately, the vendor-suggested workaround is to pre- or post-validate incoming headers and reject any request containing duplicate Content-Disposition or Content-Type parameters (more than one filename, name, charset, or boundary token) before it reaches the parser or the upload filter; the trade-off is added request-processing logic and a small risk of rejecting unusual-but-legitimate clients that emit repeated parameters. Additionally, ensure your WAF/reverse proxy and the application resolve duplicate parameters identically, and enforce upload allowlists on server-side validated attributes (final stored filename, magic-byte content type) rather than solely on the raw header value.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is @hapi/content (npm package pkg:npm/@hapi/content), the MIME/header parsing library that backs multipart and Content-Type/Content-Disposition handling in the Hapi.js Node.js web framework. The root cause maps to CWE-436 (Interpretation Conflict): RFC 6266 (Content-Disposition) and RFC 7231 (Content-Type) do not mandate a single deterministic resolution for repeated parameters, so two parsers in the same request chain can disagree. Here Content.disposition() silently retained the last occurrence of a duplicated parameter while Content.type() retained the first occurrence of charset and boundary. When a defensive component upstream (WAF, proxy, security filter) picks a different occurrence than the Hapi application does, the two see different effective values from the same header - the classic parameter-smuggling condition. The fix (commit 3850079) tightens the content-type token regex to the RFC 7230 §3.2.6 token set and makes both parsers throw Boom.badRequest on duplicate charset/boundary and duplicate disposition parameters instead of silently choosing one, while still allowing RFC 6266 ext-value (filename*) overrides.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote, unauthenticated, no interaction (AV:N/AC:L/PR:N/UI:N); scope change (S:C) since the bypass impacts a separate upstream filter, with limited integrity impact and no confidentiality/availability effect.
Primary rating from Vendor (https://github.com/hapijs/content).
CVSS VectorVendor: https://github.com/hapijs/content
Lifecycle Timeline
2DescriptionCVE.org
Impact
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"
Patches
The issue has been patched in 6.0.2.
Workarounds
Pre or post validate headers looking for duplicates.
Resources
Executive ViewAI
@hapi/content versions prior to 6.0.2 (used by Hapi.js web applications) contain a parameter parsing vulnerability that allows attackers to bypass upload filename restrictions, potentially enabling malicious file uploads. Organizations running affected Hapi.js versions risk unauthorized file uploads and potential system compromise. Vendor patch 6.0.2 is available and should be deployed immediately.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-45313
GHSA-36hh-x5p5-jgc8
NVD
CVE.org
EPSS
Exploit-DB