MODERATE

CVE-2026-59370

WS-Security faults disclose why validation of a request failed

Description

When validation of an inbound WS-Security header failed, the SOAP fault returned to the sender used the message of the underlying exception as its fault string, telling an unauthenticated sender which check failed and why. Because that message varies with the cause, a sender can also distinguish the failure modes of a message it submitted.

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

Inbound WS-Security processing is performed by an AbstractWsSecurityInterceptor subclass, such as Wss4jSecurityInterceptor. No custom EndpointExceptionResolver replaces the fault string built from the validation exception.

Fixed versions return the same fault string, Security processing failed, whatever the failure, and log the details instead. A client relying on the previous fault string to tell failures apart will no longer be able to. Configure an exceptionResolver to take over building the fault.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.ws » spring-ws-security
<= 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
112affected versions
115dependent artifacts (est.)
4,376dependent versions

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

DepthDependent versions
Direct
1,194
2 hops
1,498
3 hops
1,048
4 hops
635
5 hops
1

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.