Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.ws/spring-ws-security
  4. ›
  5. CVE-2026-40995

CVE-2026-40995: Spring Web Services: X.509 authentication bypasses Spring Security account checks

June 11, 2026 (updated August 21, 2026)

X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certificate mapped to UserDetails, without applying Spring Security’s standard account lifecycle checks (disabled, locked, expired, or credentials-expired accounts).

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.

References

  • github.com/advisories/GHSA-6mfm-98wv-32wm
  • github.com/spring-projects/spring-ws/commit/e5dc311359e14f5b25bcb33f20d43cc3513e9d10
  • nvd.nist.gov/vuln/detail/CVE-2026-40995
  • spring.io/security/cve-2026-40995

Code Behaviors & Features

Detect and mitigate CVE-2026-40995 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1.0 up to 3.1.8, all versions starting from 4.0.0 up to 4.0.18, all versions starting from 4.1.0 before 4.1.4, all versions starting from 5.0.0 before 5.0.2

Fixed versions

  • 4.1.4
  • 5.0.2

Solution

Upgrade to versions 4.1.4, 5.0.2 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

maven/org.springframework.ws/spring-ws-security/CVE-2026-40995.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 05 Sep 2026 12:16:49 +0000.