MODERATE

CVE-2026-59371

Client-side schema validation of a response can bypass its WS-Security validation

Description

A client that sets validateResponse on PayloadValidatingInterceptor did not reject a response that failed schema validation. The errors were logged and the response was returned to the application anyway, and the rest of the interceptor chain was skipped, including any interceptor declared before the validating one.

This issue only affects deployments where all the following are true:

The client declares a PayloadValidatingInterceptor with validateResponse set to true. A response-securing interceptor, such as Wss4jSecurityInterceptor validating responses, is declared before that validating interceptor in the client's interceptor list.

As Wss4jSecurityInterceptor validates responses by default, a response that failed schema validation therefore reached the application with its WS-Security header never checked. An attacker able to supply the response can bypass signature and encryption checks by making the payload schema-invalid.

Fixed versions reject such a response with a WebServiceValidationException.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.ws » spring-ws-core
<= 3.1.9>= 4.0.0, <= 4.0.19>= 4.1.0, <= 4.1.4>= 5.0.0, < 5.0.4
5.0.4

Blast radius

1affected artifacts
114affected versions
1,166dependent artifacts (est.)
40,616dependent versions

54% of the dependent artifacts (641) still pull an affected version in their latest release.

DepthDependent versions
Direct
6,156
2 hops
7,582
3 hops
5,357
4 hops
3,206
5 hops
4,459
6 hops
13,856

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.