Skip to main content

@hapi/content CVE-2026-44974

| EUVDEUVD-2026-45313 HIGH
Interpretation Conflict (CWE-436)
2026-05-27 https://github.com/hapijs/content GHSA-36hh-x5p5-jgc8
7.7
CVSS 4.0 · Vendor: https://github.com/hapijs/content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Hapi upload endpoint behind allowlist filter
  2. Delivery
    Send request with duplicate filename parameter
  3. Exploit
    WAF validates benign first value
  4. Execution
    @hapi/content resolves malicious last value
  5. Persist
    Malicious file stored under executable name
  6. Impact
    Trigger 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 May 27, 2026 - 23:21

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

content < 6.0.2

Affected Packages

npm @hapi/content fix: 6.0.2
euvd content fix: 6.0.2

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

Vendor (https://github.com/hapijs/content) PRIMARY 7.7 HIGH
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
vuln.today AI 5.8 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (https://github.com/hapijs/content).

CVSS VectorVendor: https://github.com/hapijs/content

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Jul 17, 2026 - 20:36 vuln.today
v2 - CVSS changed
CVSS changed
Jul 17, 2026 - 20:22 NVD
7.7 (HIGH)

DescriptionCVE.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

Why It Matters

@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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Prevalence
Medium
core parser dependency of the moderately popular Hapi.js Node framework
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy