Io.netty:netty codec stomp: Netty: STOMP CONNECT Frame Header Injection in Netty (CVE-2026-59920)
A vulnerability in Netty's STOMP codec encoder (io.netty.handler.codec.stomp.StompSubframeEncoder) allows injection of additional STOMP headers via newline characters in CONNECT frame header values. This occurs because the encoder skips escaping and validation of newline characters for CONNECT and CONNECTED commands, enabling header injection. The vulnerability can lead to authentication bypass due to injected headers. It affects versions 4.2.12.Final and earlier with codec-stomp. The issue arises from improper neutralization of CRLF sequences (CWE-93).
AI Analysis
Technical Summary
Netty's STOMP codec encoder (StompSubframeEncoder) intentionally skips escaping header values for CONNECT and CONNECTED commands to maintain backward compatibility with STOMP 1.0 clients, per the STOMP 1.2 specification. However, this skipping also omits validation of newline characters in header values, allowing raw newline characters to be written directly to the output. This enables an attacker to inject additional STOMP headers by including newline characters in CONNECT frame headers. The vulnerability is due to conflating escaping with validation: while escaping is skipped as per spec, validation to reject malformed headers containing raw newlines is missing. This can lead to header injection and potential authentication bypass in downstream STOMP brokers that process the injected headers. Exploitation requires user-controlled input in CONNECT frame headers and lack of sanitization by the application. The vulnerability affects the encodeHeaders() and shouldEscape() methods in StompSubframeEncoder. No official patch or fix is currently documented.
Potential Impact
The vulnerability allows an attacker with low privileges and no user interaction to inject additional STOMP headers into CONNECT frames by including raw newline characters in header values. This can lead to authentication bypass in downstream STOMP brokers that parse the injected headers. Confidentiality and availability impacts are not affected, but integrity impact is high due to the ability to manipulate protocol headers. The attack vector is network-based and complexity is low.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, applications using Netty's codec-stomp module should implement input validation to reject or sanitize newline characters in CONNECT frame header values to prevent injection. Avoid placing user-controlled input directly into CONNECT headers without sanitization. Monitor vendor advisories for updates or patches addressing this issue.
Io.netty:netty codec stomp: Netty: STOMP CONNECT Frame Header Injection in Netty (CVE-2026-59920)
Description
A vulnerability in Netty's STOMP codec encoder (io.netty.handler.codec.stomp.StompSubframeEncoder) allows injection of additional STOMP headers via newline characters in CONNECT frame header values. This occurs because the encoder skips escaping and validation of newline characters for CONNECT and CONNECTED commands, enabling header injection. The vulnerability can lead to authentication bypass due to injected headers. It affects versions 4.2.12.Final and earlier with codec-stomp. The issue arises from improper neutralization of CRLF sequences (CWE-93).
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 STOMP codec encoder (StompSubframeEncoder) intentionally skips escaping header values for CONNECT and CONNECTED commands to maintain backward compatibility with STOMP 1.0 clients, per the STOMP 1.2 specification. However, this skipping also omits validation of newline characters in header values, allowing raw newline characters to be written directly to the output. This enables an attacker to inject additional STOMP headers by including newline characters in CONNECT frame headers. The vulnerability is due to conflating escaping with validation: while escaping is skipped as per spec, validation to reject malformed headers containing raw newlines is missing. This can lead to header injection and potential authentication bypass in downstream STOMP brokers that process the injected headers. Exploitation requires user-controlled input in CONNECT frame headers and lack of sanitization by the application. The vulnerability affects the encodeHeaders() and shouldEscape() methods in StompSubframeEncoder. No official patch or fix is currently documented.
Potential Impact
The vulnerability allows an attacker with low privileges and no user interaction to inject additional STOMP headers into CONNECT frames by including raw newline characters in header values. This can lead to authentication bypass in downstream STOMP brokers that parse the injected headers. Confidentiality and availability impacts are not affected, but integrity impact is high due to the ability to manipulate protocol headers. The attack vector is network-based and complexity is low.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, applications using Netty's codec-stomp module should implement input validation to reject or sanitize newline characters in CONNECT frame header values to prevent injection. Avoid placing user-controlled input directly into CONNECT headers without sanitization. Monitor vendor advisories for updates or patches addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-3g8r-4pfx-jmfh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59920"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a6150d39c2644c7f8da06cc
Added to database: 07/22/2026, 23:22:59 UTC
Last enriched: 07/22/2026, 23:29:36 UTC
Last updated: 07/22/2026, 23:29:36 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.