Insecure Defaults Affecting org.springframework.ws:spring-ws-security package, versions [,4.1.4)[5.0.0-M1,5.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Defaults vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKWS-17320710
  • published12 Jun 2026
  • disclosed10 Jun 2026
  • creditUnknown

Introduced: 10 Jun 2026

NewCVE-2026-40994  (opens in a new tab)
CWE-453  (opens in a new tab)

How to fix?

Upgrade org.springframework.ws:spring-ws-security to version 4.1.4, 5.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Defaults due to the Wss4jSecurityInterceptor class in Wss4jSecurityInterceptor.java initializing its bspCompliant flag to false, so inbound validation always calls RequestData.setDisableBSPEnforcement(true) and disables WSS4J's WS-I Basic Security Profile checks, contradicting the documented secure default of the setBspCompliant setter. A remote, unauthenticated attacker can send SOAP messages that violate BSP rules around signatures and related constructs to a service that uses the interceptor for inbound WS-Security validation, weakening defenses against non-standard transforms and signature-related abuse.

Workaround

This can be mitigated by enabling BSP compliance explicitly by calling the setBspCompliant setter method with true as the argument.

CVSS Base Scores

version 4.0
version 3.1