Cross-site scripting in Apache Sling
Priority LOW 32CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
EPSS 0.02604 85th percentileScored 2026-11-07
Fix Fixed Apache Sling (Apache Software Foundation): 1.0.12org.apache.sling:org.apache.sling.xss (Maven): 1.0.12+1 more product
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Sling | before 1.0.12 | 1.0.12 | Patch available | CNA |
| — | org.apache.sling:org.apache.sling.xss (Maven) | before 1.0.12 | 1.0.12 | Patch available | GHSA-xwf4-88xr-hx2j |
| — | org.apache.sling:org.apache.sling.xss.compat (Maven) | before 1.1.0 | 1.1.0 | Patch available | GHSA-xwf4-88xr-hx2j |
- Apache Sling VendorApache Affected before 1.0.12 Fixed in 1.0.12 Patch available CNA
- org.apache.sling:org.apache.sling.xss (Maven) Vendor— Affected before 1.0.12 Fixed in 1.0.12 Patch available GHSA-xwf4-88xr-hx2j
- org.apache.sling:org.apache.sling.xss.compat (Maven) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-xwf4-88xr-hx2j
Remediation
- Fix · CNA Apache Sling (Apache Software Foundation) Fixed in 1.0.12
- Fix · GHSA-xwf4-88xr-hx2j org.apache.sling:org.apache.sling.xss (Maven) Fixed in 1.0.12 Advisory →
- Fix · GHSA-xwf4-88xr-hx2j org.apache.sling:org.apache.sling.xss.compat (Maven) Fixed in 1.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2016-5394
- 2026-10-03 Alias added: GHSA-xwf4-88xr-hx2j
References
Other 4
- https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E
- https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529
- https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-5394
- https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525@%3Cdev.sling.apache.org%3E
More Apache Sling vulnerabilities
- TI-2016-00864 The Servlets Post component 2.3.6 in Apache Sling, as used in Adobe Experience Manager… CVSS 3.0HIGH 7.5
- TI-2016-05839 XML external entity injection in Apache Sling CVSS 3.0CRITICAL 9.8
- TI-2013-03847 Open redirect vulnerability in the AbstractAuthenticationFormServlet in the Auth Core… CVSS 2.0MEDIUM 5.8
Sources
- CVE-2016-5394 · CVE Program
- CVE-2016-5394 · NVD
- FIRST EPSS
- GHSA-xwf4-88xr-hx2j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences