CVE-2017-15717
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.
How to fix
- org.apache.sling:org.apache.sling.xss2.0.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache sling_xss_protection_api | 1.0.4 < v ≤ 1.0.18, 2.0.0 | — |
| apache sling_xss_protection_api_compat | 1.1.0 | — |
| org.apache.sling:org.apache.sling.xssMaven | 1.0.4 ≤ v < 2.0.4 | 2.0.4 |
| org.apache.sling:org.apache.sling.xss.compatMaven | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.