# CVE-2026-40997: SOAP security faults leak Spring Security account state

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-11 · Modified: 2026-06-23
- Aliases: UBUNTU-CVE-2026-40997, GHSA-5x25-c2rf-f2jx
- Record: https://cvemate.com/vulnerability/CVE-2026-40997 · JSON: https://cvemate.com/vulnerability/CVE-2026-40997/json

## Description

```text
Several Spring WS integration paths with Spring Security could surface detailed account state (for example locked or disabled user semantics) to remote SOAP clients through exception messages or callback outcomes, instead of failing with generic authentication errors. That behavior assists remote attackers in distinguishing valid accounts from invalid ones and inferring lifecycle state.

Affected versions:
Spring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.366%, percentile 32.426%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- broadcom spring\_web\_services: \< 3.1.9 \| ≥ 4.0.0, \< 4.0.19 \| ≥ 4.1.0, \< 4.1.3.1 \| ≥ 5.0.0, \< 5.0.1.1
- ubuntu spring (Ubuntu): All versions (No fix recorded)
- org.springframework.ws spring-ws-security (Maven): ≥ 5.0.0, \< 5.0.2 \| ≥ 4.1.0, \< 4.1.4 \| ≥ 4.0.0, ≤ 4.0.18 \| ≥ 3.1.0, ≤ 3.1.8
- spring spring web services: ≥ 5.0.0, \< 5.0.1.1 \| ≥ 4.1.0, \< 4.1.3.1 \| ≥ 4.0.0, \< 4.0.19 \| ≥ 3.1.0, \< 3.1.9

## References

- <https://spring.io/security/cve-2026-40997>
- <https://ubuntu.com/security/CVE-2026-40997>
- <https://www.cve.org/CVERecord?id=CVE-2026-40997>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40997>
- <https://github.com/spring-projects/spring-ws/commit/5051fae1a836c4d7fa12dedebdca23494764e421>
- <https://github.com/spring-projects/spring-ws>

---

Data as of 2026-12-05T03:44:33.403Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
