CVE-2025-41254
Medium · 4.3CVSS
4.3
EPSS
0.3%
Published
Oct 16, 2025
CISA due date
—
Cloudanix analysis
A flaw in certain versions of a popular Java framework could let outsiders send messages they should not be allowed to send inside applications that use real-time web connections.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Web Framework
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits unauthorized STOMP messages to be sent over WebSocket connections by bypassing intended authorization checks in the Spring Framework message handling layer.
Why it matters to the business
Attackers can inject or manipulate messages in WebSocket-based STOMP applications, potentially disrupting service operations or altering application state without proper access controls.
How an attack unfolds
An attacker establishes a WebSocket connection to a vulnerable STOMP endpoint and sends crafted STOMP frames that evade authorization validation, allowing delivery of messages that should have been blocked.
How to fix it
Upgrade Spring Framework to 6.2.12, 6.1.24, or 5.3.46 depending on the branch in use; unsupported versions require migration or custom mitigation.
How to confirm the fix worked
Verify the deployed Spring Framework version against the fixed releases and test STOMP message flows with authorization rules enabled to confirm bypass attempts are now rejected.
Typical attack path
- Identify a Spring-based application exposing STOMP over WebSocket endpoints
- Establish an unauthenticated or low-privilege WebSocket connection
- Craft and transmit STOMP messages that bypass authorization logic
- Observe successful delivery of unauthorized messages to backend handlers
How to detect it
Inspect application logs for STOMP frame processing events that occur outside expected authorization contexts and review WebSocket connection metadata for anomalous message origins.
What your security team should do
- Prioritize upgrade of all Spring Framework instances to the corresponding fixed versions
- Review and strengthen authorization configuration on STOMP endpoints
- Monitor for unusual message patterns on WebSocket connections
The record
STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages. Affected Spring Products and VersionsSpring 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. MitigationUsers of affected versions should upgrade to the corresponding fixed version. Affected version(s)Fix versionAvailability6.2.x6.2.12OSS6.1.x6.1.24 Commercial https://enterprise.spring.io/ 6.0.xN/A Out of support https://spring.io/projects/spring-framework#support 5.3.x5.3.46 Commercial https://enterprise.spring.io/ No further mitigation steps are necessary. CreditThis vulnerability was discovered and responsibly reported by Jannis Kaiser.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.springframework:spring-websocket | 0 | No fix |
| Maven | org.springframework:spring-websocket | 6.0.0 | No fix |
| Maven | org.springframework:spring-websocket | 6.1.0 | No fix |
| Maven | org.springframework:spring-websocket | 6.2.0 | 6.2.12 |
| Chainguard | thingsboard | 0 | 4.2.1-r3 |
| Chainguard | thingsboard-tb-js-executor | 0 | 4.2.1-r3 |
| Chainguard | thingsboard-tb-mqtt-transport | 0 | 4.2.1-r3 |
| Chainguard | thingsboard-tb-node | 0 | 4.2.1-r3 |
| Chainguard | thingsboard-tb-web-ui | 0 | 4.2.1-r3 |
| Wolfi | thingsboard | 0 | 4.2.1-r3 |
| Wolfi | thingsboard-tb-js-executor | 0 | 4.2.1-r3 |
| Wolfi | thingsboard-tb-mqtt-transport | 0 | 4.2.1-r3 |
| Wolfi | thingsboard-tb-node | 0 | 4.2.1-r3 |
| Wolfi | thingsboard-tb-web-ui | 0 | 4.2.1-r3 |
| maven | org.springframework/spring-websocket | 6.0.0 | No fix |
| maven | org.springframework/spring-websocket | 6.1.0 | No fix |
| maven | org.springframework/spring-websocket | 6.2.0 | 6.2.12 |
Related vulnerabilities
- GHSA-6rw7-vpxm-498p qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion Also affects thingsboard
- CVE-2025-15284 Improper Input Validation vulnerability in qs (parse modules) allows HTTP DoS.This issue… Also affects thingsboard
- CVE-2024-51999 Express.js minimalist web framework for node. Also affects thingsboard
- GHSA-pj86-cfqh-vqx6 Withdrawn Advisory: express improperly controls modification of query properties Also affects thingsboard
- GHSA-mh29-5h37-fv8m js-yaml has prototype pollution in merge (<<) Also affects thingsboard
- CVE-2025-64718 js-yaml is a JavaScript YAML parser and dumper. Also affects thingsboard
- CVE-2025-61795 Improper Resource Shutdown or Release vulnerability in Apache Tomcat. Also affects thingsboard
- CVE-2025-59419 Netty is an asynchronous, event-driven network application framework. Also affects thingsboard