Skip to main content

Spring Framework CVE-2026-41838

| EUVDEUVD-2026-35325 HIGH
Use of Insufficiently Random Values (CWE-330)
2026-06-09 vmware GHSA-q723-847q-5g8g
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed Spring WebSocket endpoint
  2. Delivery
    Open attacker WebSocket/STOMP session
  3. Exploit
    Predict victim session ID from weak RNG
  4. Execution
    Send SUBSCRIBE/SEND referencing victim session
  5. Impact
    Receive 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 11, 2026 - 17:12 cvss changed CVSS 7.5

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.

v1 Jun 09, 2026 - 05:27 CVSS 4.8

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

Spring Framework 7.0.0 <7.0.8
Spring Framework 5.3.0 <5.3.49
Spring Framework 6.1.0 <6.1.28
Spring Framework 6.2.0 <6.2.19

Affected Packages

maven org.springframework:spring-websocket fix: 6.2.19, 7.0.8
euvd spring_framework fix: 5.3.49, 6.1.28, 6.2.19, 7.0.8

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

7
Analysis Updated
Jun 11, 2026 - 17:13 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 11, 2026 - 17:12 vuln.today
v2 - CVSS changed
Severity Changed
Jun 11, 2026 - 17:07 NVD
MEDIUM HIGH
CVSS changed
Jun 11, 2026 - 17:07 NVD
4.8 (MEDIUM) 7.5 (HIGH)
Severity Changed
Jun 11, 2026 - 17:07 NVD
MEDIUM HIGH
CVSS changed
Jun 11, 2026 - 17:07 NVD
4.8 (MEDIUM) 7.5 (HIGH)
Patch available
Jun 09, 2026 - 06:01 EUVD

DescriptionNVD

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

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

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

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

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy