KeygraphLabs · CVE MCP

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.

CVSS
9.8
critical, from NVD
EPSS
3.67%
percentile 90.0%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-19Published
2022-05-17Package advisory GHSA-7g54-vgp6-jj5w
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.67%

Affected packages

AdvisoryPackageFixed in
GHSA-7g54-vgp6-jj5worg.apache.sling:org.apache.sling.xss (Maven)1.0.12
GHSA-7g54-vgp6-jj5worg.apache.sling:org.apache.sling.xss.compat (Maven)1.1.0

Also known as: GHSA-7g54-vgp6-jj5w

Related

CVEPublishedCVSSSummary
CVE-2017-157172018-01-106.1same package: org.apache.sling:org.apache.sling.xss (Maven)
CVE-2016-53942017-07-196.1same package: org.apache.sling:org.apache.sling.xss (Maven)
CVE-2026-1122532026-12-037.5Apache Camel: Camel-XSLT-Saxon: XML external entity processing - XsltSaxonAggregationStrategy built a Saxon TransformerFactory without external-access restricti
CVE-2026-1121942026-12-037.5Apache 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-1051532026-11-117.7Apache Roller: XML external entity processing in AtomPub entry parsing
CVE-2026-909932026-11-117.5Apache XML Graphics Batik: Harden validation in SAXDocumentFactory
CVE-2026-1207612026-11-099.1Apache Axis2/Java: XML External Entity (XXE) injection via imported WSDL/XSD documents
CVE-2026-818162026-11-053.5Apache 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.

NVD · CVE.org