CVE-2020-13954 — apache-cxf
MEDIUMCVE-2020-13954 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in org.apache.cxf:apache-cxf. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.apache.cxf:apache-cxf — see the affected versions and patch details below.
Cross-site scripting in Apache CXF
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.cxf:apache-cxf☕org.apache.cxf:apache-cxf☕org.apache.cxf:cxf☕org.apache.cxf:cxfReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
By default, Apache CXF creates a /services page containing a listing of the available endpoint names and addresses. This webpage is vulnerable to a reflected Cross-Site Scripting (XSS) attack via the styleSheetPath, which allows a malicious actor to inject javascript into the web page. This vulnerability affects all versions of Apache CXF prior to 3.4.1 and 3.3.8. Please note that this is a separate issue to CVE-2019-17573.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.cxf:apache-cxf | all versions | 3.3.8org.apache.cxf:apache-cxf:3.3.8 |
| ☕Maven | org.apache.cxf:apache-cxf | ≥ 3.4.0&&< 3.4.1 | 3.4.1org.apache.cxf:apache-cxf:3.4.1 |
| ☕Maven | org.apache.cxf:cxf | all versions | 3.3.8org.apache.cxf:cxf:3.3.8 |
| ☕Maven | org.apache.cxf:cxf | ≥ 3.4.0&&< 3.4.1 | 3.4.1org.apache.cxf:cxf:3.4.1 |
Affected Products
cxfapachesnap creator frameworknetappvasa provider for clustered data ontapnetappbusiness intelligenceoraclecommunications messaging serveroracleretail order broker cloud serviceoracleResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.cxf:apache-cxf, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.cxf:apache-cxf to 3.3.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-13954 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Users can disable the service listing altogether by setting the "hide-service-list-page" servlet parameter to "true".Source: Red Hat security advisory for CVE-2020-13954 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Fuse 7.9 | cxf-core | RHSA-2021:3140 |
| Red Hat Integration | see advisory | RHSA-2021:3205 |
Frequently Asked Questions
Is CVE-2020-13954 in your dependencies?
Find it across Maven, including transitive dependencies.