ADVISORIES

GitHub Advisory Database

GHSA-7g54-vgp6-jj5w

XML External Entity Reference in Apache Sling

Critical CVE-2016-6798

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.apache.sling:org.apache.sling.xss
All versions before 1.0.12 (fixed in 1.0.12)
Mavenorg.apache.sling:org.apache.sling.xss.compat
All versions before 1.1.0 (fixed in 1.1.0)

References