CVE-2025-41254 Spring Framework STOMP CSRF Vulnerability

Medium 4.3 Published Updated

Attackers can send unauthorized messages in STOMP over WebSocket applications due to a CSRF vulnerability in Spring Framework.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-41254?

CVE-2025-41254 is a medium-severity vulnerability in VMware Spring Framework, published on 16 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-352

Which versions are affected by CVE-2025-41254?

8 open source packages ship an affected version, including org.springframework:spring-websocket.

PackageAffectedFixed in
org.springframework:spring-websocket MavenAll versions to 5.3.39None
org.springframework:spring-websocket MavenAll versions to 5.3.39None
org.springframework:spring-websocket MavenFrom 6.0.0 to 6.0.23None
org.springframework:spring-websocket MavenFrom 6.0.0 to 6.0.23None
org.springframework:spring-websocket MavenFrom 6.1.0 to 6.1.21None
org.springframework:spring-websocket MavenFrom 6.1.0 to 6.1.21None
2 more packages
org.springframework:spring-websocket MavenFrom 6.2.06.2.12
org.springframework:spring-websocket MavenFrom 6.2.06.2.12

How do I fix CVE-2025-41254?

Upgrade org.springframework:spring-websocket to 6.2.12 or later.

Is CVE-2025-41254 being exploited?

There is no known exploitation of CVE-2025-41254 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-KB50222, CLSA-2025-1761523598, CLSA-2025-1761523599, CLSA-2026-1773015249, CLSA-2026-1792115364, DEBIAN-CVE-2025-41254 and 4 more.

Is CVE-2025-41254 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free