CVE-2017-15717Apache Sling Xss Protection Api
Medium 6.1 No auth needed
Follow: this CVE · Apache · Apache Sling Xss Protection Api We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Sling Xss Protection Api.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| apache | sling_xss_protection_api | > 1.0.4 ≤ 1.0.18 |
| apache | sling_xss_protection_api | 2.0.0 |
| apache | sling_xss_protection_api_compat | 1.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- s.apache.org Vendor Advisory