CVE-2016-5394

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductApache Sling
PublishedJul 19, 2017
First seenJul 19, 2017

How to fix

Update
  • apache sling1.0.12 or later
  • org.apache.sling:org.apache.sling.xss1.0.12 or later
  • org.apache.sling:org.apache.sling.xss.compat1.1.0 or later

Affected products

ProductAffected versionsFixed in
apache slingv < 1.0.121.0.12
org.apache.sling:org.apache.sling.xssMavenv < 1.0.121.0.12
org.apache.sling:org.apache.sling.xss.compatMavenv < 1.1.01.1.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.