CVE-2026-41838

Spring Framework Predictable Session ID in WebSocket Module

Published Jun 9, 2026 CVSS 3.1 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability stems from session identifiers generated in the spring-websocket module that are not cryptographically unpredictable. The result is a predictable WebSocket session ID, meaning an adversary could potentially guess or construct a valid session token and gain unauthorized access to a WebSocket connection provided that the application does not enforce stringent authorization rules. This weakness is classified as CWE‑330, which denotes weak random number generation for critical security functions. The impact can range from session hijacking to full compromise of data transmitted over a WebSocket channel, but it is limited to scenarios where an attacker can attempt a guess or enumeration attack against the session IDs.

Affected Systems

Affected products are the Spring Framework from version 5.3.0 through 5.3.48, 6.1.0 through 6.1.27, 6.2.0 through 6.2.18 and 7.0.0 through 7.0.7. Any deployment that uses the spring‑websocket module in these version ranges is vulnerable.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity level. EPSS data is not available, so the exploitation probability cannot be quantified, but the vulnerability is not listed in the CISA KEV catalog, suggesting no widely observed exploitation. The likely attack path is a network‑based attempt to guess or brute‑force a WebSocket session identifier, which would then allow the attacker to attach to an existing WebSocket session or initiate a new session if the server accepts arbitrary IDs. Successful exploitation would require that the application does not enforce proper authorization or rate‑limiting on WebSocket connections.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Spring Framework release that is not listed among the vulnerable versions (v7.0.8+, v6.2.19+, v6.1.28+, or v5.3.49+).
  • Enforce strict authentication and authorization for all WebSocket endpoints, ensuring that only legitimate users can establish or continue a session regardless of the session identifier.
  • Implement rate‑limiting or session ID verification to prevent brute‑force attempts, and monitor access logs for repeated illegal session ID requests.

Generated by OpenCVE AI on June 9, 2026 at 05:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q723-847q-5g8g Spring Framework Predictable Session ID in WebSocket Module
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Framework
CPEs cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Framework
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Framework
Vendors & Products Spring
Spring spring Framework
Type Values Removed Values Added
Description 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.
Title Spring Framework Predictable Session ID in WebSocket Module
Weaknesses CWE-330
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-330

    Use of Insufficiently Random Values

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 8:57 PM
Reserved
Apr 22, 2026, 6:22 AM
Status
Analyzed
Published
Jun 9, 2026, 5:16 AM
Modified
Jul 23, 2026, 8:10 AM