CVE-2025-41254: Spring Framework STOMP over WebSocket applications may allow attackers to send unauthorized messages
STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages. Affected Spring Products and Versions Spring Framework: 6.2.0 - 6.2.11 6.1.0 - 6.1.23 6.0.x - 6.0.29 5.3.0 - 5.3.45 Older, unsupported versions are also affected. Mitigation Users of affected versions should upgrade to the corresponding fixed version.
Published Oct 16, 2025 · Updated Oct 17, 2025
Affected packages
org.springframework:spring-websocket
- Ecosystem
- Maven
- Affected
- >= 6.2.0, < 6.2.12
- Fixed in
- 6.2.12
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-websocket
org.springframework:spring-websocket
- Ecosystem
- Maven
- Affected
- >= 6.1.0, <= 6.1.21
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-websocket
org.springframework:spring-websocket
- Ecosystem
- Maven
- Affected
- >= 6.0.0, <= 6.0.23
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-websocket
org.springframework:spring-websocket
- Ecosystem
- Maven
- Affected
- <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-websocket
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages.
Affected Spring Products and Versions
Spring Framework:
- 6.2.0 - 6.2.11
- 6.1.0 - 6.1.23
- 6.0.x - 6.0.29
- 5.3.0 - 5.3.45
- Older, unsupported versions are also affected.
Mitigation
Users of affected versions should upgrade to the corresponding fixed version.
Affected version(s)
Fix version | Availability -|- 6.2.x | 6.2.12 OSS 6.1.x | 6.1.24 Commercial https://enterprise.spring.io/ 6.0.x | N/A Out of support https://spring.io/projects/spring-framework#support 5.3.x | 5.3.46 Commercial https://enterprise.spring.io/
No further mitigation steps are necessary.
CreditThis vulnerability was discovered and responsibly reported by Jannis Kaiser.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
