Cross-site Scripting (XSS) Affecting org.apache.sling:org.apache.sling.xss package, versions [,1.0.12)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.09% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHESLING-31465
  • published31 Aug 2017
  • disclosed3 Aug 2016
  • creditUnknown

Introduced: 3 Aug 2016

CVE-2016-5394  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade org.apache.sling:org.apache.sling.xss to version 1.0.12 or higher.

Overview

org.apache.sling:org.apache.sling.xss is a framework for RESTful web-applications based on an extensible content tree.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) attacks. 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.

Details

<>

References

CVSS Base Scores

version 3.1