CRITICAL 9.1

CVE-2026-87830

Apache WSS4J: Streaming WS-SecurityPolicy validation may skip element-protection checks.

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

In the StAX streaming WS-SecurityPolicy validator, certain relative or unsupported XPath expressions can be converted into paths that never match the actual XML element path. A remote SOAP peer may therefore send a required element without the expected signature or encryption. Users are recommended to upgrade to versions 4.0.2 or 3.0.6 or 2.4.4, which fix this issue.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.wss4j » wss4j-ws-security-policy-staxpreliminary
< 2.4.4>= 3.0.0, < 3.0.6>= 4.0.0, < 4.0.2
2.4.4, 3.0.6, 4.0.2

Blast radius

1affected artifacts
83affected versions
1,346dependent artifacts (est.)
71,343dependent versions

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

DepthDependent versions
Direct
2,501
2 hops
21,317
3 hops
23,293
4 hops
17,230
5 hops
6,020
6 hops
982

Most used dependents

Computed from the dependency graph of build 20261124.0621 (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.