CVE-2026-87830

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

Published Sep 30, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw resides in the StAX streaming WS‑SecurityPolicy validator, where certain relative or unsupported XPath expressions are transformed into paths that never match the real XML element path. As stated, a remote SOAP peer can therefore deliver a required element without the expected signature or encryption, allowing the attacker to send tampered or forged SOAP messages while avoiding the intended integrity checks.

Affected Systems

The vulnerability affects all versions of the Apache WSS4J library distributed by the Apache Software Foundation that lack the fix. The advisory recommends upgrading to version 4.0.2, 3.0.6, or 2.4.4, which contain the necessary code changes.

Risk and Exploitability

The CVSS score of 9.1 indicates critical severity and reflects the potential for remote attackers to subvert signature or encryption verification. EPSS data is not available, so the concrete likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is remote and requires sending crafted SOAP messages over the network to a target application that uses the affected library.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Apache WSS4J version 4.0.2, 3.0.6, or 2.4.4, which contains the patch for the XPath processing issue.
  • Ensure that any XPath expressions used in WS‑SecurityPolicy configurations are validated against a whitelist of supported forms to prevent invalid expressions from being processed.
  • Apply a network filter or application firewall rule to log or block anomalous SOAP requests that contain malformed or unexpected XPath components, providing an additional detection layer.

Generated by OpenCVE AI on October 1, 2026 at 00:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:wss4j:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-264
CWE-643
Type Values Removed Values Added
Weaknesses CWE-917
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache wss4j
Vendors & Products Apache
Apache wss4j
Type Values Removed Values Added
Weaknesses CWE-264
CWE-643
Type Values Removed Values Added
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.
Title Apache WSS4J: Streaming WS-SecurityPolicy validation may skip element-protection checks.
References
Weaknesses
  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 30, 2026, 7:47 PM
Reserved
Sep 9, 2026, 11:00 AM
Status
Analyzed
Published
Sep 30, 2026, 12:17 PM
Modified
Oct 6, 2026, 5:26 PM