Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade io.netty:netty-codec-stomp to version 4.1.136.Final, 4.2.16.Final or higher.
Affected versions of this package are vulnerable to CRLF Injection via the encodeHeaders in the STOMP frame encoder, which fails to validate or escape newline characters in header values for certain commands. An attacker can inject arbitrary headers by including newline characters in user-controlled input, potentially bypassing authentication or modifying connection parameters.
Note: This is only exploitable if user-controlled input is placed into header values of a CONNECT or CONNECTED frame, the application does not perform its own newline sanitization, and the downstream STOMP broker processes the injected headers.