Skip to content
Fencer Vulns
medium 6.1

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

Sources

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.