Skip to main content
Mallory
High

Spring Web Services Wss4jSecurityInterceptor BSP Validation Disabled by Default

IdentifiersCVE-2026-40994CWE-1188· Initialization of a Resource with…

CVE-2026-40994 affects Spring Web Services in configurations using Wss4jSecurityInterceptor for inbound WS-Security validation. The interceptor initialized its WS-I Basic Security Profile (BSP) compliance flag such that WSS4J BSP enforcement on RequestData was disabled during inbound validation. As a result, affected services could accept WS-Security messages that violate BSP rules, including rules around signatures and related WS-Security constructs, weakening protocol-level validation intended to enforce safe and interoperable message handling. Affected versions are Spring Web Services 5.0.0 through 5.0.1, 4.1.0 through 4.1.3, 4.0.0 through 4.0.18, and 3.1.0 through 3.1.8; unsupported versions may also be affected.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote attacker to submit WS-Security messages that do not conform to WS-I BSP requirements yet are still accepted by the service. This weakens protocol-level security checks and can undermine trust in signature-related validation and associated WS-Security processing. Based on the provided CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N), the primary impact is high integrity risk, with limited confidentiality impact and no stated availability impact.

Mitigation

If you can’t patch tonight, do this now.

If upgrading is not immediately possible, explicitly enable BSP compliance in Wss4jSecurityInterceptor by calling setBspCompliant(true). Also review deployments that rely on inbound WS-Security validation to ensure BSP enforcement is enabled and verify that non-compliant WS-Security messages are rejected as expected.

Remediation

Patch, then assume compromise.

Upgrade Spring Web Services to a fixed release. The provided content identifies the following fixes: 5.0.2 for the 5.0.x branch and 4.1.4 for the 4.1.x branch as OSS fixes; 5.0.1.1, 4.1.3.1, 4.0.19, and 3.1.9 are listed as Enterprise Support fixes for their respective branches. Unsupported versions should be moved to a supported fixed version where possible.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity4

Community discussion across Reddit, Mastodon, and other social sources.