ADVISORIES

GitHub Advisory Database

GHSA-xwf4-88xr-hx2j

Cross site scripting in Apache Sling

Moderate CVE-2016-5394

Details

In the XSS Protection API module before 1.0.12 in Apache Sling, the encoding done by the XSSAPI.encodeForJSString() method is not restrictive enough and for some input patterns allows script tags to pass through unencoded, leading to potential XSS vulnerabilities.

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