Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Spring WebSocket endpoint
-
DeliveryOpen attacker WebSocket/STOMP session
-
ExploitPredict victim session ID from weak RNG
-
ExecutionSend SUBSCRIBE/SEND referencing victim session
-
ImpactReceive confidential messages routed to victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic random values
|
| Exploitation Conditions | The target application must use the spring-websocket module with WebSocket/STOMP endpoints exposed to the attacker, AND its authorization rules must be 'inadequate' in the sense that per-message access decisions rely on the WebSocket session ID rather than re-checking the authenticated user/principal. The endpoint must be network-reachable to the attacker (CVSS AV:N, PR:N, UI:N - no authentication or user interaction required against the Spring layer itself), but applications that enforce Spring Security authorization on each inbound message, or that scope subscriptions to the authenticated principal, materially limit exploitation. Apps not using spring-websocket are not affected. |
| Impact | Signals point in different directions: the CVSS 3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/C:H/I:N/A:N) reflects a network-reachable confidentiality issue, but EPSS is only 0.03% (9th percentile), the CISA SSVC decision is Exploitation: none / Automatable: no / Technical Impact: partial, and the issue is not in CISA KEV. The description itself is conditional - impact requires 'inadequate authorization rules' in the consuming application, so a hardened deployment that re-checks authorization on every WebSocket message is much less exposed than the raw 7.5 implies. Realistic priority is moderate: patch on the normal cycle for internet-facing apps that use WebSocket/STOMP, especially those relying on session ID alone to scope user data; deprioritize for apps that do not use spring-websocket. |
| Exploit ScenarioDerived | An attacker connects to a vulnerable Spring application's WebSocket endpoint, observes or predicts another user's session ID due to insufficient randomness, and then issues STOMP SUBSCRIBE or SEND frames referencing that session to read messages or state intended for the victim. Because the underlying app's authorization checks rely on the session ID rather than re-verifying the authenticated principal per message, the attacker receives confidential data routed to the victim's session. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 11, 2026
Predictable WebSocket session IDs in Spring Framework's spring-websocket module allow remote attackers to guess or forge session identifiers and, when paired with weak authorization rules, hijack or interact with other users' WebSocket sessions. The flaw affects Spring Framework 5.3.x, 6.1.x, 6.2.x, and 7.0.x prior to patched releases; no public exploit identified at time of analysis and EPSS is very low (0.03%).
Earlier versions of this analysis (2)
Predictable WebSocket session IDs in Spring Framework's spring-websocket module allow remote attackers to potentially hijack or access other users' WebSocket sessions when combined with inadequate authorization rules. The flaw affects Spring Framework 5.3.0 through 7.0.7 across multiple branches and stems from session IDs that are not cryptographically unpredictable (CWE-330). EPSS is very low at 0.03% and there is no public exploit identified at time of analysis, but a vendor patch is available.
Predictable WebSocket session IDs in the spring-websocket module of Spring Framework allow an authenticated remote attacker to potentially enumerate or infer valid session identifiers and hijack WebSocket connections - but only when the target application also implements inadequate authorization rules on its WebSocket endpoints. All actively maintained Spring Framework release lines are affected: 5.3.x, 6.1.x, 6.2.x, and 7.0.x. No public exploit has been identified at time of analysis and this CVE does not appear in the CISA KEV catalog; real-world exploitation is further bounded by high attack complexity and a required user interaction step.
RemediationAI
Vendor-released patch: upgrade Spring Framework to 5.3.49, 6.1.28, 6.2.19, or 7.0.8 depending on the branch in use, as documented at https://spring.io/security/cve-2026-41838. Where an immediate upgrade is not possible, harden the consuming application's authorization layer so WebSocket message handling does not trust the session ID alone - re-validate the authenticated principal on every inbound STOMP/WebSocket message via Spring Security's AuthorizationManager or channel interceptors, and bind sensitive subscriptions to the user principal rather than the session ID (trade-off: requires code changes and may add per-message overhead). For lower-trust deployments, terminating WebSocket connections behind a gateway that enforces auth on every frame, or disabling WebSocket endpoints that are not strictly required, reduces exposure at the cost of feature loss.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The spring-websocket module provides WebSocket and STOMP messaging support on top of Spring's web stack, assigning a session ID to each established WebSocket connection for routing messages and tracking subscriptions. The root cause is CWE-330 (Use of Insufficiently Random Values): session identifiers are generated without a cryptographically secure pseudo-random number generator, so an attacker who observes or brute-forces the value space can predict valid session IDs. Per the affected CPE (cpe:2.3:a:spring:spring_framework), any Java application embedding spring-websocket on the vulnerable versions inherits the weakness, and exploitation impact depends on how the application's authorization rules validate session-bound state.
Know when Spring gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Network-reachable WebSocket with no auth or UI, but exploitation requires predicting a session ID and a misconfigured authorization layer, so AC:H; only confidentiality is impacted.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
7DescriptionNVD
IDs for WebSocket sessions in the spring-websocket module are not cryptographically unpredictable, which may be possible to exploit in combination with inadequate authorization rules.
Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
Executive ViewAI
CVE-2026-41838 affects Spring Framework's WebSocket functionality and could enable unauthorized users to hijack legitimate user sessions; no public exploit identified at time of analysis. Organizations running affected Spring Framework versions (5.3.x, 6.1.x, 6.2.x, 7.0.x) with WebSocket capabilities face risk of user account compromise and unauthorized data access. Current exploitation likelihood is low, but the vulnerability warrants patching within 30 days as part of routine vulnerability management.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Spring Framework DoS, Injection, and Auth Vulnerabilities
View all 18Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-35325
GHSA-q723-847q-5g8g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB