The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-41254

CVE-2025-41254: Spring Framework Auth Bypass Vulnerability

CVE-2025-41254 is an authentication bypass vulnerability in Spring Framework's STOMP over WebSocket that allows attackers to send unauthorized messages. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-41254 Overview

A security bypass vulnerability exists in Spring Framework's STOMP over WebSocket implementation that allows an attacker to send unauthorized messages. This Cross-Site Request Forgery (CWE-352) vulnerability affects applications utilizing STOMP messaging over WebSocket connections, potentially enabling attackers to perform actions on behalf of authenticated users without proper authorization checks.

Critical Impact

Attackers can exploit this vulnerability to send unauthorized STOMP messages through WebSocket connections, bypassing security controls and potentially executing unauthorized actions within affected applications.

Affected Products

  • Spring Framework 6.2.0 - 6.2.11
  • Spring Framework 6.1.0 - 6.1.23
  • Spring Framework 6.0.x - 6.0.29
  • Spring Framework 5.3.0 - 5.3.45
  • Older, unsupported versions are also affected

Discovery Timeline

  • Reported - Vulnerability discovered and responsibly reported by Jannis Kaiser
  • 2025-10-16 - CVE CVE-2025-41254 published to NVD
  • 2025-10-16 - Last updated in NVD database

Technical Details for CVE-2025-41254

Vulnerability Analysis

This vulnerability stems from improper handling of cross-origin requests in Spring Framework's STOMP over WebSocket implementation. STOMP (Simple Text Oriented Messaging Protocol) is commonly used for real-time messaging in web applications, running over WebSocket connections for bidirectional communication.

The flaw allows attackers to craft malicious requests that bypass the expected security controls, enabling unauthorized message transmission through the WebSocket channel. The vulnerability requires user interaction, such as visiting a malicious web page, which then exploits the established WebSocket connection.

The impact is limited to integrity concerns—attackers cannot read sensitive data but can modify or inject messages into the STOMP messaging flow. This could lead to unauthorized actions being performed within the application context depending on how STOMP messaging is implemented.

Root Cause

The vulnerability is classified as CWE-352 (Cross-Site Request Forgery), indicating that the STOMP over WebSocket implementation lacks sufficient protections against cross-origin attacks. The security bypass occurs because the framework does not adequately validate the origin of incoming STOMP messages, allowing external sites to forge requests on behalf of authenticated users.

Attack Vector

The attack is network-based and requires user interaction. An attacker must entice a victim who has an active session with the vulnerable application to visit a malicious website. The malicious site can then leverage the victim's authenticated session to send STOMP messages through the WebSocket connection without proper authorization.

The attack flow involves:

  1. The victim authenticates to an application using Spring Framework's STOMP over WebSocket
  2. The victim navigates to an attacker-controlled website while maintaining their session
  3. The malicious site initiates a cross-origin WebSocket connection or crafts requests that exploit the existing session
  4. Unauthorized STOMP messages are sent on behalf of the victim

For technical details on this vulnerability mechanism, refer to the Spring Security Advisory for CVE-2025-41254.

Detection Methods for CVE-2025-41254

Indicators of Compromise

  • Unexpected STOMP messages originating from unusual client IPs or geographic locations
  • WebSocket connection patterns showing cross-origin requests from untrusted domains
  • Application logs indicating message operations that don't correlate with legitimate user activity
  • Anomalous messaging patterns during user sessions that involve external site visits

Detection Strategies

  • Implement logging for all STOMP message operations including source origin headers
  • Monitor WebSocket connections for cross-origin requests from untrusted domains
  • Deploy application-level intrusion detection to identify unusual messaging patterns
  • Review authentication and authorization logs for discrepancies between user actions and STOMP operations

Monitoring Recommendations

  • Enable verbose logging for Spring WebSocket and STOMP messaging components
  • Implement real-time alerting for STOMP messages with suspicious origin patterns
  • Monitor application behavior for unauthorized state changes that could result from forged messages
  • Track WebSocket session activity and correlate with user interaction patterns

How to Mitigate CVE-2025-41254

Immediate Actions Required

  • Identify all applications using Spring Framework STOMP over WebSocket functionality
  • Upgrade to the patched version appropriate for your Spring Framework branch
  • Review application logs for any evidence of exploitation attempts
  • Consider implementing additional origin validation as a defense-in-depth measure

Patch Information

Users of affected versions should upgrade to the corresponding fixed version:

Affected VersionFix VersionAvailability
6.2.x6.2.12OSS
6.1.x6.1.24Commercial (Enterprise Spring)
6.0.xN/AOut of support
5.3.x5.3.46Commercial (Enterprise Spring)

No further mitigation steps are necessary after applying the appropriate patch. For commercial support options, visit the Spring Enterprise page.

Workarounds

  • Implement strict CORS policies to limit cross-origin WebSocket connections
  • Add application-level origin validation for incoming STOMP messages
  • Consider implementing CSRF tokens for WebSocket handshake operations
  • Limit STOMP endpoint exposure to trusted origins only through configuration
bash
# Example: Verify Spring Framework version in Maven projects
mvn dependency:tree | grep spring-framework
# or for Gradle projects
gradle dependencies | grep spring-framework

# Update pom.xml to use patched version (for 6.2.x)
# <spring.framework.version>6.2.12</spring.framework.version>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSpring Framework

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Technical References
  • NIST CVSS v3 Calculator

  • Spring Security CVE-2025-41254
  • Related CVEs
  • CVE-2025-41249: Spring Framework Auth Bypass Vulnerability

  • CVE-2025-22233: Spring Framework Auth Bypass Vulnerability

  • CVE-2020-5421: Spring Framework Auth Bypass Vulnerability

  • CVE-2026-22737: Spring Framework Info Disclosure Bug
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English