CVE-2017-15717: Apache Sling Xss Protection API

Medium severity, CVSS 6.1. EPSS: 2.9% chance of exploitation in the next 30 days.

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 products

  • Apache Sling Xss Protection API: after 1.0.4, up to and including 1.0.18; version 2.0.0 only
  • Apache Sling Xss Protection API Compat: version 1.1.0 only

Published 2018-01-10. Last modified 2026-06-17.