MODERATE 6.1

CVE-2017-15717

Cross-site Scripting in Apache Sling XSS Protection API

Description

A flaw in the way URLs are escaped and encoded in the org.apache.sling.xss.impl.XSSAPIImpl#getValidHref and org.apache.sling.xss.impl.XSSFilterImpl#isValidHref allows special crafted URLs to pass as valid, although they carry XSS payloads. The affected versions are Apache Sling XSS Protection API 1.0.4 to 1.0.18, Apache Sling XSS Protection API Compat 1.1.0 and Apache Sling XSS Protection API 2.0.0.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.sling » org.apache.sling.xss
>= 1.0.4, < 2.0.4
2.0.4
org.apache.sling » org.apache.sling.xss.compatSee advisory-

Blast radius

1affected artifacts
8affected versions
130dependent artifacts (est.)
1,279dependent versions

47% of the dependent artifacts (62) still pull an affected version in their latest release.

DepthDependent versions
Direct
89
2 hops
304
3 hops
335
4 hops
337
5 hops
201
6 hops
13

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Webs.apache.org