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.
Published: 2026-06-09
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

References
History

Tue, 09 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 09 Jun 2026 05:45:00 +0000

Type Values Removed Values Added
First Time appeared Spring
Spring spring Framework
Vendors & Products Spring
Spring spring Framework

Tue, 09 Jun 2026 04:45:00 +0000

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'}


Subscriptions

Spring Spring Framework
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-06-09T13:39:43.249Z

Reserved: 2026-04-22T06:22:01.122Z

Link: CVE-2026-41838

cve-icon Vulnrichment

Updated: 2026-06-09T13:39:39.877Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-06-09T05:16:35.723

Modified: 2026-06-09T13:49:39.993

Link: CVE-2026-41838

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T05:30:36Z

Weaknesses