Live threats

All CVEs / Apache

CVE-2017-15717Apache Sling Xss Protection Api

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
3.3%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Jan 10, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sling Xss Protection Api.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.sling:org.apache.sling.xss ≥ 1.0.4 < 2.0.4 2.0.4 —
Maven org.apache.sling:org.apache.sling.xss.compat 1.1.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-7mfw-43c4-45mq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachesling_xss_protection_api> 1.0.4 ≤ 1.0.18
apachesling_xss_protection_api2.0.0
apachesling_xss_protection_api_compat1.1.0

Official sources

References

Links published by the sources. Open them with care.