---
id: CVE-2026-41838
title: >-
  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.…
summary: >-
  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.…
severity: medium
cvss: 4.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-330
vendor: vmware
product: spring_framework
affected:
  - 'spring_framework >= 5.3.0, < 5.3.49'
  - 'spring_framework >= 6.1.0, < 6.1.28'
  - 'spring_framework >= 6.2.0, < 6.2.18.1'
  - 'spring_framework >= 7.0.0, < 7.0.7.1'
patched:
  - spring_framework 7.0.7.1
published: '2026-06-09'
updated: '2026-07-17'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-41838'
references:
  - url: 'https://spring.io/security/cve-2026-41838'
    label: security@vmware.com
tags:
  - nvd
epss: 0.00295
epssPercentile: 0.1971
ingestedAt: '2026-07-17T21:16:23.702Z'
---

## Overview

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.

## Affected

- `spring_framework >= 5.3.0, < 5.3.49`
- `spring_framework >= 6.1.0, < 6.1.28`
- `spring_framework >= 6.2.0, < 6.2.18.1`
- `spring_framework >= 7.0.0, < 7.0.7.1`

## Remediation

Upgrade past the affected range:

- `spring_framework 7.0.7.1`
