---
id: CVE-2026-40995
title: >-
  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 …
summary: >-
  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 …
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-287
vendor: broadcom
product: spring_web_services
affected:
  - spring_web_services < 3.1.9
  - 'spring_web_services >= 4.0.0, < 4.0.19'
  - 'spring_web_services >= 4.1.0, < 4.1.3.1'
  - 'spring_web_services >= 5.0.0, < 5.0.1.1'
patched:
  - spring_web_services 5.0.1.1
published: '2026-06-11'
updated: '2026-09-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-40995'
references:
  - url: 'https://spring.io/security/cve-2026-40995'
    label: security@vmware.com
tags:
  - nvd
epss: 0.00181
epssPercentile: 0.06795
ingestedAt: '2026-09-05T13:39:55.341Z'
---

## Overview

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.

## Affected

- `spring_web_services < 3.1.9`
- `spring_web_services >= 4.0.0, < 4.0.19`
- `spring_web_services >= 4.1.0, < 4.1.3.1`
- `spring_web_services >= 5.0.0, < 5.0.1.1`

## Remediation

Upgrade past the affected range:

- `spring_web_services 5.0.1.1`
