CVE-2016-6798 · apache
CVE-2016-6798
In the XSS Protection API module before 1.0.12 in Apache Sling, the method XSS.getValidXML() uses an insecure SAX parser to validate the input string, which allows for XXE attacks in all scripts which use this method to validate user input, potentially allowing an attacker to read sensitive data on the filesystem, perform same-site-request-forgery (SSRF), port-scanning behind the firewall or DoS the application.
Published 2017-07-19, last changed 2026-06-17. Weakness: CWE-611.
How to fix
Upgrade to a fixed version: org.apache.sling:org.apache.sling.xss 1.0.12 (Maven); org.apache.sling:org.apache.sling.xss.compat 1.1.0 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-07-19 | Published |
| 2022-05-17 | Package advisory GHSA-7g54-vgp6-jj5w |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.67% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-7g54-vgp6-jj5w | org.apache.sling:org.apache.sling.xss (Maven) | 1.0.12 |
| GHSA-7g54-vgp6-jj5w | org.apache.sling:org.apache.sling.xss.compat (Maven) | 1.1.0 |
Also known as: GHSA-7g54-vgp6-jj5w
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2017-15717 | 2018-01-10 | 6.1 | same package: org.apache.sling:org.apache.sling.xss (Maven) |
| CVE-2016-5394 | 2017-07-19 | 6.1 | same package: org.apache.sling:org.apache.sling.xss (Maven) |
| CVE-2026-112253 | 2026-12-03 | 7.5 | Apache Camel: Camel-XSLT-Saxon: XML external entity processing - XsltSaxonAggregationStrategy built a Saxon TransformerFactory without external-access restricti |
| CVE-2026-112194 | 2026-12-03 | 7.5 | Apache Camel: Camel-Smooks XML External Entity Processing and File Disclosure via Message Bodies Already Converted to a Smooks Source (Incomplete Fix for CVE-20 |
| CVE-2026-105153 | 2026-11-11 | 7.7 | Apache Roller: XML external entity processing in AtomPub entry parsing |
| CVE-2026-90993 | 2026-11-11 | 7.5 | Apache XML Graphics Batik: Harden validation in SAXDocumentFactory |
| CVE-2026-120761 | 2026-11-09 | 9.1 | Apache Axis2/Java: XML External Entity (XXE) injection via imported WSDL/XSD documents |
| CVE-2026-81816 | 2026-11-05 | 3.5 | Apache OFBiz: XML external entity injection (XXE) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6798, or call /api/v1/vulnerabilities/CVE-2016-6798. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.