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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (60th 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-32064
  • published6 Feb 2018
  • disclosed10 Jan 2018
  • creditUnknown

Introduced: 10 Jan 2018

CVE-2017-15717  (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 2.0.4 or higher.

Overview

org.apache.sling:org.apache.sling.xss is a package for providing XSS protection based on the OWASP AntiSamy and OWASP Java Encoder libraries.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). A flaw in the way URLs are escaped and encoded allows special crafted URLs to pass as valid, although they carry XSS payloads.

CVSS Scores

version 3.1