Intel

AIKIDO-2026-819079

spring-ws-security is vulnerable to Initialization of a Resource with an Insecure Default

Initialization of a Resource with an Insecure DefaultCVE-2026-40994 Published Jun 15, 2026

80

High Risk

This Affects:

javaspring-ws-security
0.0.1 - 4.1.3
Fixed in 4.1.4
5.0.0 - 5.0.1
Fixed in 5.0.2
Are you affected? Scan for Free

TL;DR

Spring Web Services Security contains an insecure default configuration in Wss4jSecurityInterceptor that disables WS-I Basic Security Profile (BSP) enforcement during inbound WS-Security validation. Applications relying on the default configuration may accept WS-Security messages that violate BSP requirements for signatures and related security constructs, weakening protocol-level security checks and increasing the risk of malformed or non-compliant messages being accepted.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

spring-ws-security is vulnerable to Initialization of a Resource with an Insecure Default in versions 0.0.1 - 4.1.3 and 5.0.0 - 5.0.1.

How to fix this

Upgrade the org.springframework.ws:spring-ws-security library to a patch version. If you are not able to upgrade, you can enable BSP compliance explicitly by calling the setBspCompliant setter method with true as argument.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform