Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Io.netty:netty codec http: Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder (CVE-2026-59921)

0
Medium
Published: 07/22/2026 (07/22/2026, 21:52:55 UTC)
Source: GCVE Database
Product: io.netty:netty-codec-http

Description

CVE-2026-59921 is a CRLF injection vulnerability in Netty's HttpPostRequestEncoder component affecting versions 4.2.12.Final and earlier with codec-http multipart. The vulnerability arises because user-controlled filenames are directly concatenated into Content-Disposition MIME headers without validation or sanitization of CRLF characters. This allows attackers who can control uploaded filenames to inject arbitrary MIME headers, potentially leading to MIME header injection, content-type spoofing, and cross-site scripting (XSS) attacks. The vulnerability requires low privileges and no user interaction, with a network attack vector. No patch status is provided in the data.

CVSS v3.1

Attack Vector
Adjacent Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected software

Mavenghsa
io.netty:netty-codec-http
Affected versions
>=4.2.0.Final <4.2.16.Final
Mavenghsa
io.netty:netty-codec-http
Affected versions
<4.1.136.Final

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 23:29:29 UTC

Technical Analysis

Netty's HttpPostRequestEncoder constructs multipart HTTP request bodies by embedding user-supplied filenames and field names directly into Content-Disposition MIME headers without validating or sanitizing CRLF sequences. The setFilename() methods in related FileUpload classes only check for null values and do not validate or sanitize CRLF characters. This improper neutralization of CRLF sequences (CWE-93) enables HTTP response splitting and MIME header injection, allowing an attacker to inject arbitrary headers or content into multipart body parts. Exploitation requires that the application uses Netty's HttpPostRequestEncoder with user-controlled filenames and does not perform its own CRLF sanitization. Attack scenarios include content-type override and stored XSS via crafted filenames. The vulnerability has a CVSS 3.1 score of 8.1 (High) according to the report, but the provided data lists a moderate severity and a CVSS vector with no confidentiality impact, indicating some discrepancy. No vendor patch or official fix information is provided.

Potential Impact

An attacker who can control the filename of an uploaded file can inject CRLF sequences into multipart MIME headers, leading to MIME header injection, content-type spoofing, and potentially stored cross-site scripting (XSS) attacks. This compromises confidentiality and integrity of the affected application’s HTTP multipart requests. The vulnerability does not impact availability. Exploitation requires low privileges and no user interaction.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications using Netty's HttpPostRequestEncoder should implement their own validation and sanitization of filenames and field names to remove or encode CRLF characters before passing them to the encoder. Avoid using user-controlled input directly in multipart headers without sanitization.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-gcjf-9mgh-3p7g
Osv Schema Version
1.4.0
Aliases
["CVE-2026-59921"]
Ecosystems
["Maven"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a6150d39c2644c7f8da06c6

Added to database: 07/22/2026, 23:22:59 UTC

Last enriched: 07/22/2026, 23:29:29 UTC

Last updated: 07/22/2026, 23:29:29 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses