Skip to main content

Apache WSS4J EUVDEUVD-2026-89792

| CVE-2026-87830 CRITICAL
Improper Neutralization of Special Elements used in an Expression Language Statement (CWE-917)
9.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify SOAP endpoint using WSS4J StAX policy
  2. Delivery
    Craft SOAP message omitting required signature/encryption
  3. Exploit
    Send message to endpoint
  4. Execution
    Broken XPath fails to match element
  5. Persist
    Policy enforcement bypassed
  6. Impact
    Forged 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Sep 30, 2026 - 12:17

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

Apache WSS4J 4.0.0 <4.0.2
Apache WSS4J 0 <2.4.4
Apache WSS4J 3.0.0 <3.0.6

Affected Packages

euvd apache_wss4j fix: 2.4.4, 3.0.6, 4.0.2

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

Vendor (CNA) PRIMARY 9.1 LOW
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 5.9 MEDIUM

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
Sep 30, 2026 - 20:53 NVD
9.1 (CRITICAL)
Patch available
Sep 30, 2026 - 13:02 EUVD
CVE Published
Sep 30, 2026 - 11:04 oss-security
CRITICAL

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
WS-Security library embedded in Java SOAP stacks (Apache CXF); enterprise-common but SOAP declining
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy