Medium severity6.1NVD Advisory· Published Jul 19, 2017· Updated Jun 17, 2026
CVE-2016-5394
CVE-2016-5394
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.sling:org.apache.sling.xssMaven | < 1.0.12 | 1.0.12 |
org.apache.sling:org.apache.sling.xss.compatMaven | < 1.1.0 | 1.1.0 |
Affected products
4- ghsa-coords2 versionspkg:maven/org.apache.sling/org.apache.sling.xsspkg:maven/org.apache.sling/org.apache.sling.xss.compat
< 1.0.12+ 1 more
- (no CPE)range: < 1.0.12
- (no CPE)range: < 1.1.0
Patches
Vulnerability mechanics
References
7- www.securityfocus.com/bid/99870nvdThird Party AdvisoryVDB EntryWEB
- github.com/advisories/GHSA-xwf4-88xr-hx2jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2016-5394ghsaADVISORY
- github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529ghsaWEB
- github.com/jensdietrich/xshady-release/tree/main/CVE-2016-5394ghsaWEB
- lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525@%3Cdev.sling.apache.org%3EghsaWEB
- lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3Envd
News mentions
0No linked articles in our index yet.