CVE-2026-44974
Received Received - Intake

Content-Disposition Parameter Smuggling in @hapi/content

Vulnerability report for CVE-2026-44974, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-17

Last updated on: 2026-07-17

Assigner: GitHub, Inc.

Description

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-17
Last Modified
2026-07-17
Generated
2026-07-18
AI Q&A
2026-07-17
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
hapi content 6.0.2
hapi content to 6.0.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves inconsistent handling of duplicate parameters in HTTP Content-Type and Content-Disposition headers by the @hapi/content library before version 6.0.2. The Content.disposition() function kept the last occurrence of duplicate parameters while Content.type() kept the first occurrence of certain parameters like charset and boundary. This inconsistency allows an attacker to smuggle malicious parameters through header parsing, potentially bypassing security filters such as filename allowlists.

Detection Guidance

Check if your system uses @hapi/content version prior to 6.0.2 by running: npm list @hapi/content. If version is below 6.0.2, the system is vulnerable. Inspect HTTP headers for duplicate parameters in Content-Type and Content-Disposition fields, such as filename appearing multiple times.

Impact Analysis

An attacker could exploit this to bypass upload filename filters by including duplicate parameters in headers. For example, a malicious file named shell.php could be disguised using duplicate filename parameters to trick systems into accepting it. This could lead to unauthorized file uploads, remote code execution, or other attacks depending on the application's functionality.

Mitigation Strategies

Upgrade @hapi/content to version 6.0.2 or later using: npm update @hapi/content. If immediate upgrade is not possible, implement input validation to detect and reject duplicate parameters in HTTP headers before processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-44974. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart