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

MEDIUM | NOVEMBER 19, 2026 | CVE-2026-59371

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 Spring Products and Versions

Spring Web Services:

  • 5.0.0 - 5.0.3
  • 4.1.0 - 4.1.4
  • 4.0.0 - 4.0.19
  • 3.1.9 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
5.0.3.1Enterprise Support Only
5.0.4OSS
4.1.5Enterprise Support Only
4.0.20Enterprise Support Only
3.1.10Enterprise Support Only

If you cannot upgrade immediately, either unset validateResponse on the validating interceptor, so that the code path is not reached and WS-Security validation of responses continues to apply, or subclass the interceptor and override handleResponseValidationErrors to throw a WebServiceValidationException.

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all