Cross-site scriptingin Apache CXF.
Proof of concept public (GitHub).
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.
- Upgrade org.apache.cxf:cxf-core (Maven) to 3.0.12, 3.1.9 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 12 Aug 2016CVE ID reserved by apache.
- 10 Aug 2017Published in the CVE List.
- 17 Sep 2024CVE record last updated.
- 16 Aug 2025First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other CXF vulnerabilities
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- cxf.apache.org x_refsource_CONFIRM
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- issues.apache.org x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
Patchminder. CVE-2016-6812: Cross-site scripting in Apache CXF. https://patchminder.com/cve/cve-2016-6812/ (accessed 5 December 2026).