CVE-2026-41838 is a medium-severity (CVSS 4.8) Insufficient Random Values vulnerability in org.springframework:spring-websocket. A fix is available for org.springframework:spring-websocket — see the affected versions and patch details below.
Spring Framework Predictable Session ID in WebSocket Module
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-41838.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework:spring-websocket☕org.springframework:spring-websocket☕org.springframework:spring-websocket☕org.springframework:spring-websocketReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework:spring-websocket | ≥ 7.0.0&&< 7.0.8 | 7.0.8org.springframework:spring-websocket:7.0.8 |
| ☕Maven | org.springframework:spring-websocket | ≥ 6.2.0&&< 6.2.19 | 6.2.19org.springframework:spring-websocket:6.2.19 |
| ☕Maven | org.springframework:spring-websocket | ≥ 6.1.0 | No fix |
| ☕Maven | org.springframework:spring-websocket | all versions | No fix |
Affected Products
spring frameworkvmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework:spring-websocket, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework:spring-websocket to 7.0.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-41838 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2026-41838 in your dependencies?
Find it across Maven, including transitive dependencies.