Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Sling | prior to 1.0.12 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
shoucheng3/apache__sling-org-apache-sling-xss_CVE-2016-5394_1-0-8 ★ 0 · Aug 18, 2025
-
epicosy/VUL4J-23 ★ 0 · May 31, 2024
apache/sling with CVE-2016-5394
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.sling:org.apache.sling.xss | < 1.0.12 | 1.0.12 | GHSA-xwf4-88xr-hx2j |
| Maven | org.apache.sling:org.apache.sling.xss.compat | < 1.1.0 | 1.1.0 | GHSA-xwf4-88xr-hx2j |