CVE-2016-5394 json
Cross site scripting in Apache Sling
published 2017-07-19 9 y ago modified 2026-06-17 4 mo ago also EUVD-2022-5871 , GHSA-xwf4-88xr-hx2j
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
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.
Patch / fix
- maven org.apache.sling:org.apache.sling.xss 1.0.12
- maven org.apache.sling:org.apache.sling.xss.compat 1.1.0
- org.apache.sling.xss compat 1.1.0
- org.apache.sling xss 1.0.12
Exploit prediction
2.60% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.sling:org.apache.sling.xss | <1.0.12 |
1.0.12 |
| maven | org.apache.sling:org.apache.sling.xss.compat | <1.1.0 |
1.1.0 |
Affected products
- Apache Software Foundation Apache Sling
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529
web
- lists.apache.org /thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E
-
securityfocus.com
/bid/99870
vdb-entry, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2016-5394
advisory
-
github.com
/jensdietrich/xshady-release/tree/main/CVE-2016-5394
web
-
lists.apache.org
/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525@%3Cdev.sling.apache.org%3E
web
Sources
- CVE List CVE-2016-5394
- GitHub Advisory GHSA-xwf4-88xr-hx2j
- NVD CVE-2016-5394
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Update CPE for accuracy.