{"id":"CVE-2016-6798","aliases":["GHSA-7g54-vgp6-jj5w"],"kind":"cve","tier":"cold","status":"published","title":"XML External Entity Reference in Apache Sling","description":"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.","ai_summary":null,"severity":"critical","cvss":{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-611"],"remote":true,"remote_unauth":true,"epss":{"score":0.03669,"percentile":0.90439,"date":"2026-11-29"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"Maven","name":"org.apache.sling:org.apache.sling.xss","affected":"< 1.0.12","fixed":["1.0.12"],"source":"osv"},{"ecosystem":"Maven","name":"org.apache.sling:org.apache.sling.xss.compat","affected":"< 1.1.0","fixed":["1.1.0"],"source":"osv"}],"affected_products":[{"vendor":"Apache Software Foundation","product":"Apache Sling","versions":"prior to 1.0.12","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade org.apache.sling:org.apache.sling.xss to 1.0.12 or later.\nUpgrade org.apache.sling:org.apache.sling.xss.compat to 1.1.0 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6798","kind":"vendor"},{"url":"https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529","kind":"patch"},{"url":"https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0%40%3Cdev.sling.apache.org%3E","kind":"other"},{"url":"http://www.securityfocus.com/bid/99873","kind":"other"},{"url":"https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-6798","kind":"other"},{"url":"https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0@%3Cdev.sling.apache.org%3E","kind":"other"}],"workarounds":null,"vendors":["apache","apache software foundation"],"products":["apache sling","sling"],"cpes":["cpe:2.3:a:apache:sling:*:*:*:*:*:*:*:*"],"published_at":"2017-07-19T15:00:00.000Z","modified_at":"2026-06-17T00:51:47.367Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6798"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-7g54-vgp6-jj5w","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2016-6798","markdown":"https://flawdb.com/CVE-2016-6798.md","json":"https://flawdb.com/api/v1/entries/CVE-2016-6798"}}