CVE-2016-5394
MEDIUM 6.1CVSS 3.1Cross site scripting in Apache Sling
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.
- Published
- 19 Jul 2017
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-xwf4-88xr-hx2j
- Sources
- NVDJSONOSV GHSA-xwf4-88xr-hx2jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | slingcpe:2.3:a:apache:sling:*:*:*:*:*:*:*:* |
< 1.0.12 | 1.0.12 |
| OSV | Maven | org.apache.sling:org.apache.sling.xss | < 1.0.12 | 1.0.12 |
| OSV | Maven | org.apache.sling:org.apache.sling.xss.compat | < 1.1.0 | 1.1.0 |
References
- http://www.securityfocus.com/bid/99870 · Third Party Advisory, VDB Entry, WEB
- https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2016-5394 · ADVISORY
- https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529 · WEB
- https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-5394 · WEB
- https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525@%3Cdev.sling.apache.org%3E · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 19 Jul 2017)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 May 2022)