CVE-2016-6798
CRITICAL 9.8CVSS 3.0XML External Entity Reference in Apache Sling
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
- 19 Jul 2017
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-611
- Also known as
- GHSA-7g54-vgp6-jj5w
- Sources
- NVDJSONOSV GHSA-7g54-vgp6-jj5wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | slingcpe:2.3:a:apache:sling:*:*:*:*:*:*:*:* |
<= 1.0.10 | |
| OSV | Maven | org.apache.sling:org.apache.sling.xss | < 1.0.12 | 1.0.12 |
| OSV | Maven | org.apache.sling:org.apache.sling.xss.compat | < 1.1.0 | 1.1.0 |
References
- http://www.securityfocus.com/bid/99873 · Third Party Advisory, VDB Entry, WEB
- https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0%40%3Cdev.sling.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2016-6798 · ADVISORY
- https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529 · WEB
- https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-6798 · WEB
- https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0@%3Cdev.sling.apache.org%3E · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 19 Jul 2017)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 May 2022)