CVE-2026-59920
MEDIUM 6.5CVSS 3.1Netty: STOMP CONNECT Frame Header Injection in Netty
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.
- Published
- 29 Jul 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-93
- Also known as
- GHSA-3g8r-4pfx-jmfh
- Sources
- NVDJSONOSV GHSA-3g8r-4pfx-jmfhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | netty | nettycpe:2.3:a:netty:netty:*:*:*:*:*:*:*:* |
< 4.1.136 | 4.1.136 |
| NVD | netty | nettycpe:2.3:a:netty:netty:*:*:*:*:*:*:*:* |
>= 4.2.0, < 4.2.16 | 4.2.16 |
| OSV | Maven | io.netty:netty-codec-stomp | >= 4.2.0.Final, < 4.2.16.Final | 4.2.16.Final |
| OSV | Maven | io.netty:netty-codec-stomp | < 4.1.136.Final | 4.1.136.Final |
References
- https://github.com/netty/netty/security/advisories/GHSA-3g8r-4pfx-jmfh · Mitigation, Vendor Advisory, WEB
- https://github.com/netty/netty · PACKAGE
- https://github.com/netty/netty/releases/tag/netty-4.1.136.Final · WEB
- https://github.com/netty/netty/releases/tag/netty-4.2.16.Final · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 29 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jul 2026)