CVE-2026-59920
Description
Netty is an asynchronous, event-driven network application framework. In versions prior to 4.1.136.Final and 4.2.16.Final, Netty's STOMP encoder ( StompSubframeEncoder ) does not escape or validate header values in CONNECT and CONNECTED frames, so raw newline ( \n ) characters in a header value are written directly to the wire, allowing an attacker who controls a header value to inject additional STOMP headers. This happens because the encoder intentionally skips escaping for CONNECT/CONNECTED frames per the STOMP 1.2 specification but never rejects the raw newlines, and since a broker parses each line as a separate header, an attacker controlling a value such as a user-supplied login or passcode can overwrite connection parameters or add authentication/role headers to bypass authentication or escalate privileges (the actual impact is broker-dependent). The issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
io.netty:netty-codec-stompMaven | >= 4.2.0.Final, < 4.2.16.Final | 4.2.16.Final |
io.netty:netty-codec-stompMaven | < 4.1.136.Final | 4.1.136.Final |
Affected products
8- osv-coords5 versionspkg:apk/chainguard/seata-serverpkg:rpm/opensuse/netty&distro=openSUSE%20Tumbleweedpkg:apk/chainguard/gremlin-serverpkg:apk/wolfi/management-api-for-apache-cassandra-5.0pkg:apk/chainguard/management-api-for-apache-cassandra-5.0
< 2.7.0-r3+ 4 more
- (no CPE)range: < 2.7.0-r3
- (no CPE)range: < 4.1.136-1.1
- (no CPE)range: < 3.8.1-r2
- (no CPE)range: < 0.1.122-r2
- (no CPE)range: < 0.1.122-r2
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-3g8r-4pfx-jmfhghsaADVISORY
- github.com/netty/netty/security/advisories/GHSA-3g8r-4pfx-jmfhnvdMitigationVendor AdvisoryWEB
- github.com/netty/netty/releases/tag/netty-4.1.136.FinalghsaWEB
- github.com/netty/netty/releases/tag/netty-4.2.16.FinalghsaWEB
News mentions
0No linked articles in our index yet.