Io.netty:netty codec http: Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder (CVE-2026-59921)
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.
AI Analysis
Technical Summary
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.
Io.netty:netty codec http: Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder (CVE-2026-59921)
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.