# CVE-2016-5394: Cross site scripting in Apache Sling

Source: https://junglewise.ai/threats/cve-2016-5394-cross-site-scripting-in-apache-sling  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-13  
License: CC BY 4.0 with a link back

CVE-2016-5394 · Severity: low · CVSS 3.1 · Published 2022-05-13

Cross site scripting in Apache Sling

Technologies: [org.apache.sling:org.apache.sling.xss (Maven)](https://junglewise.ai/threats/technologies/org-apache-sling-org-apache-sling-xss), [org.apache.sling:org.apache.sling.xss.compat (Maven)](https://junglewise.ai/threats/technologies/org-apache-sling-org-apache-sling-xss-compat). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2016-5394 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2016-5394 being exploited in the wild.

**How severe is CVE-2016-5394?** Low severity, with a CVSS score of 3.1, published 13 May 2022.

**Which products and versions are affected?** org.apache.sling:org.apache.sling.xss (Maven) ECOSYSTEM:introduced=0,fixed=1.0.12; org.apache.sling:org.apache.sling.xss.compat (Maven) ECOSYSTEM:introduced=0,fixed=1.1.0.

**Is there a fix for CVE-2016-5394?** Yes. org.apache.sling:org.apache.sling.xss (Maven): upgrade to 1.0.12 or later; org.apache.sling:org.apache.sling.xss.compat (Maven): upgrade to 1.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2016-5394?** Check whether you run org.apache.sling:org.apache.sling.xss (Maven) or org.apache.sling:org.apache.sling.xss.compat (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.sling:org.apache.sling.xss (Maven): upgrade to 1.0.12 or later

  ```sh
  # set org.apache.sling:org.apache.sling.xss to 1.0.12 in your pom.xml or build.gradle
  ```

- org.apache.sling:org.apache.sling.xss.compat (Maven): upgrade to 1.1.0 or later

  ```sh
  # set org.apache.sling:org.apache.sling.xss.compat to 1.1.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.sling:org.apache.sling.xss (Maven) ECOSYSTEM:introduced=0,fixed=1.0.12
- org.apache.sling:org.apache.sling.xss.compat (Maven) ECOSYSTEM:introduced=0,fixed=1.1.0

## Identifiers

- CVE-2016-5394
- GHSA-xwf4-88xr-hx2j

## Related threats

- [XML External Entity Reference in Apache Sling](https://junglewise.ai/threats/cve-2016-6798-xml-external-entity-reference-in-apache-sling)
- [Cross-site Scripting in Apache Sling XSS Protection API](https://junglewise.ai/threats/cve-2017-15717-cross-site-scripting-in-apache-sling-xss-protection-api)
