XSS in Apache Cxf
CVE-2016-6812
The HTTP transport module in Apache CXF prior to 3.0.12 and 3.1.x prior to 3.1.9 uses FormattedServiceListWriter to provide an HTML page which lists the names and absolute URL addresses of the available service endpoints. The module calculates the base URL using the current HttpServletRequest. The calculated base URL is used by FormattedServiceListWriter to build the service endpoint absolute URLs. If the unexpected matrix parameters have been injected into the request URL then these matrix parameters will find their way back to the client in the services list page which represents an XSS risk to the client.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.075, 94.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Apache Cxf — versions 3.1.0, 3.1.1, 3.1.2
- Apache Software Foundation Cxf — versions 3.1.x prior to 3.1.9, prior to 3.0.12
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- shoucheng3/asf__cxf_CVE-2016-6812_3-0-11 (last pushed 2025-10-29)
Also mentioned in 1 other repository (n0-traces/cve_monitor). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHSA-2017:0868 (vendor-advisory)
- cxf.apache.org/security-advisories.data/CVE-2016-6812.txt.asc (Patch, Vendor Advisory)
- www.securitytracker.com/id/1037543 (Third Party Advisory, VDB Entry, vdb-entry)
- issues.apache.org/jira/browse/CXF-6216 (Issue Tracking, Vendor Advisory)
- www.securityfocus.com/bid/97582 (Third Party Advisory, VDB Entry, vdb-entry)
- [cxf-commits] 20200116 svn commit: r1055336 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2019-12423.txt.asc security-advisories.data/CVE-2019-17573.txt.asc security-advisories.html (mailing-list)
- [cxf-commits] 20200319 svn commit: r1058035 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2019-17573.txt.asc security-advisories.html (mailing-list)
- [cxf-commits] 20200401 svn commit: r1058573 - in /websites/production/cxf/content: cache/main.pageCache index.html security-advisories.data/CVE-2020-1954.txt.asc security-advisories.html (mailing-list)
- [cxf-commits] 20201112 svn commit: r1067927 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2020-13954.txt.asc security-advisories.html (mailing-list)
- [cxf-commits] 20210402 svn commit: r1073270 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2021-22696.txt.asc security-advisories.html (mailing-list)
This CVE has public exploit evidence. See the latest CVEs with public exploits.