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 stomp: Netty: STOMP CONNECT Frame Header Injection in Netty (CVE-2026-59920)

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

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

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

Affected software

Mavenghsa
io.netty:netty-codec-stomp
Affected versions
>=4.2.0.Final <4.2.16.Final
Mavenghsa
io.netty:netty-codec-stomp
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:36 UTC

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.

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