GHSA-66vg-36xv-j6x4
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify SOAP endpoint using WSS4J StAX policy
-
DeliveryCraft SOAP message omitting required signature/encryption
-
ExploitSend message to endpoint
-
ExecutionBroken XPath fails to match element
-
PersistPolicy enforcement bypassed
-
ImpactForged or unprotected element accepted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Expression language sanitization
|
| Exploitation Conditions | Exploitation requires the target to (1) use Apache WSS4J (versions <4.0.2, <3.0.6, or <2.4.4) as its WS-Security implementation, (2) use the StAX/streaming WS-SecurityPolicy validator specifically, and (3) have a security policy whose SignedElements/EncryptedElements/RequiredElements assertions use relative or otherwise unsupported XPath expressions - the exact expressions that get mis-converted into never-matching paths. Where those conditions hold, a remote SOAP peer can exploit it without authentication or user interaction. The limiting factor is the policy configuration: services using only absolute/supported XPath or not relying on element-level XPath signing/encryption are not affected. |
| Impact | The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, 9.1) presents this as a critical, remotely-reachable, unauthenticated security-control bypass. However, the real-world risk is materially lower than 9.1 for two reasons. First, exploitation is not universal: it is gated on the target service using Apache WSS4J's StAX (streaming) WS-SecurityPolicy validator AND having a security policy that references relative or unsupported XPath expressions - a configuration-specific precondition, not a default-on flaw, which realistically pushes attack complexity higher than the AC:L the vendor assigned. Second, I dispute the C:H rating: the described impact is that a remote SOAP peer can submit a required element WITHOUT the mandated signature or encryption, which is fundamentally an integrity/authentication-enforcement bypass (tampering/spoofing), not a disclosure of server-held secrets to the attacker; confidentiality impact is at best indirect. No EPSS score, no CISA KEV listing, and no public exploit code were provided - consistent with a recently-disclosed library flaw. Net: a genuine and serious integrity-control bypass for the subset of WSS4J deployments whose policies use the affected XPath forms, but the blanket 9.1 overstates both breadth (config-dependent) and confidentiality impact. Priority is elevated where WSS4J-fronted SOAP services rely on element-level XPath signing/encryption policies; otherwise moderate. |
| Exploit ScenarioDerived | A remote SOAP peer targets a Java web service that enforces WS-SecurityPolicy via WSS4J's StAX validator with a policy specifying signed or encrypted elements by relative/unsupported XPath. The attacker crafts and sends a SOAP message that omits the required signature or encryption on that element; because the broken XPath conversion produces a path that never matches, the validator silently accepts the unprotected element, bypassing the integrity/encryption requirement. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
Apache WSS4J versions 4.0.0 through 4.0.1, 3.0.0 through 3.0.5, and all 2.x releases before 2.4.4 can accept SOAP messages in which a required element was never signed or encrypted, because the StAX streaming WS-SecurityPolicy validator converts relative or otherwise unsupported XPath expressions into paths that never match the real XML element path. The result is a fail-open integrity failure: a remote, unauthenticated SOAP peer (CVSS 3.1 AV:N/PR:N/UI:N) can send a policy-required element without the expected signature or encryption and the validator will not object. Exploitation is conditional on the deployment using WSS4J's StAX/streaming policy validator with a security policy whose SignedElements, EncryptedElements, or RequiredElements assertions use relative or unsupported XPath; our independent assessment rates the exploit vector AC:H and limits impact to integrity (I:H) with no confidentiality or availability effect, well below the vendor's 9.1 score, and no public exploit code has been identified at time of analysis.
Earlier versions of this analysis (1)
Apache WSS4J's StAX streaming WS-SecurityPolicy validator can silently skip required element-protection checks, allowing a remote SOAP peer to deliver a supposedly signed or encrypted element without the expected signature or encryption and have it accepted (assessed CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N). The flaw affects the wss4j-ws-security-policy-stax module in versions 4.0.0 before 4.0.2, 3.0.0 before 3.0.6, and all versions before 2.4.4, and is only reachable when a service enforces element protection through WS-SecurityPolicy XPath expressions that fall into the affected class of relative or otherwise unsupported expressions. Exploitation requires no authentication and no user interaction, but depends on that specific validator, policy configuration, and vulnerable version combination; no public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor-released patches are 4.0.2, 3.0.6, and 2.4.4.
RemediationAI
Upgrade to a fixed release: Apache WSS4J 4.0.2, 3.0.6, or 2.4.4, matching the maintenance line in use - the vendor states these versions fix the issue (Vendor-released patch: 4.0.2, 3.0.6, 2.4.4), and advisories are published at https://ws.apache.org/, https://seclists.org/oss-sec/2026/q3/1022, and http://www.openwall.com/lists/oss-security/2026/09/30/9 (tracked as EUVD-2026-89792). If immediate upgrade is not possible, audit every WS-SecurityPolicy in use and rewrite SignedElements, EncryptedElements, and RequiredElements assertions that use relative or non-standard XPath into absolute, supported XPath expressions - this removes the trigger entirely but must be validated against real production messages, since a malformed rewrite can cause legitimate traffic to be rejected. As a containment measure, switch the policy validation path from the StAX/streaming validator to the DOM-based validator where the hosting stack exposes that toggle (for example, disabling streaming WS-SecurityPolicy validation in CXF/Axis2 configuration); the trade-off is materially higher memory consumption and reduced throughput on large messages. Finally, treat pre-upgrade traffic as untrusted: add a validating intermediary or gateway that independently verifies signatures and encryption on required elements, and consider rejecting at deployment time any security policy containing XPath expressions the streaming engine does not fully support rather than relying on runtime evaluation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WSS4J is the Java library that implements WS-Security and WS-SecurityPolicy for SOAP stacks such as Apache CXF, Axis2, and Spring-WS. The affected component is the streaming (StAX-based) WS-SecurityPolicy validator, which parses incoming SOAP messages as a stream rather than building a DOM tree. WS-SecurityPolicy asserts which message elements must be signed or encrypted through SignedElements/EncryptedElements/RequiredElements XPath assertions; the streaming implementation supports only a restricted subset of XPath, and for expressions outside that subset (relative paths in particular) it silently derives a path that can never match the actual element, instead of rejecting the policy or failing closed. Because the mismatch is silent, the required element passes through unsigned/unencrypted while the validator reports success - a security-control bypass rather than memory corruption or code execution. The vendor classifies the root cause as CWE-917 (improper neutralization of special elements in an expression-language statement), which in this instance manifests as an XPath translation defect in the policy engine. Notably, the EUVD record lists Apache WSS4J 4.0.0 <4.0.2, 3.0.0 <3.0.6, and 0 <2.4.4 as affected, and the intelligence tags (Java, Information Disclosure) frame the practical exposure as policy-protected data crossing the wire unprotected.
Know when Wss4J gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Remote unauthenticated (AV:N/PR:N), but gated on a specific non-default XPath policy configuration (AC:H); impact is a signature/encryption enforcement bypass (I:H) with no genuine confidentiality or availability impact (C:N/A:N).
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
3Description PRE-NVD
Articles & Coverage 1
Executive ViewAI
Apache WSS4J, a library used to enforce WS-Security policies for SOAP-based integrations, has a critical integrity flaw that can cause policy-required element signatures or encryption to be silently ignored in certain streaming-validator configurations. An unauthenticated SOAP peer could bypass these integrity controls without triggering an error, potentially undermining trust in message authenticity and tamper resistance for affected business integrations. A vendor patch is available, and while no public exploit has been identified at time of analysis, leadership should prioritize remediation because the flaw weakens a security control that many SOAP interfaces rely on.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Unauthenticated remote attackers can bypass authentication in Apache WSS4J (4.0.0 before 4.0.2, 3.0.0 before 3.0.6, and
WS-Security policy bypass in Apache WSS4J (4.0.0 <4.0.2, 3.0.0 <3.0.6, and 0 <2.4.4) allows an unauthenticated remote at
Apache WSS4J before 1.6.17 and 2.0.x before 2.0.2 improperly leaks information about decryption failures when decrypting
Apache WSS4J before 1.6.17 and 2.x before 2.0.2 allows remote attackers to bypass the requireSignedEncryptedDataElements
Denial of service in Apache WSS4J (2.x before 2.4.4, 3.x before 3.0.6, and 4.x before 4.0.2) allows unauthenticated remo
XML Signature Wrapping protections in Apache WSS4J's streaming (StAX) code path can be bypassed, allowing a remote unaut
Unauthenticated denial of service in Apache WSS4J lets remote attackers exhaust server memory by sending SOAP messages t
Apache WSS4J before 1.6.17 and 2.x before 2.0.2, as used in Apache CXF 2.7.x before 2.7.13 and 3.0.x before 3.0.2, when
UsernameToken replay protection in Apache WSS4J can be bypassed by re-encoding the Nonce, allowing a captured authentica
EUVD-2026-89792
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB