{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.sling:org.apache.sling.xss and org.apache.sling:org.apache.sling.xss.compat. It affects 2 products.","exploited":"There is no known exploitation of CVE-2017-15717 in the wild and no public exploit code.","fix":"Upgrade org.apache.sling:org.apache.sling.xss to 2.0.4 or later.","what":"CVE-2017-15717 is a medium-severity cross-site scripting vulnerability in Apache Sling, published on 10 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-15717 and fix it if it is affected.\n\nWhat it is: CVE-2017-15717 is a medium-severity cross-site scripting vulnerability in Apache Sling, published on 10 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-15717 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.sling:org.apache.sling.xss (Maven): affected from 1.0.4; fixed in 2.0.4\n- org.apache.sling:org.apache.sling.xss (Maven): affected from 1.0.4; fixed in 2.0.4\n- org.apache.sling:org.apache.sling.xss.compat (Maven): affected all versions; no fix listed\n- org.apache.sling:org.apache.sling.xss.compat (Maven): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-15717/ (Markdown: https://insights.sbomify.com/CVE-2017-15717/index.md)","id":"CVE-2017-15717","markdown":"https://insights.sbomify.com/CVE-2017-15717/index.md","name":"CVE-2017-15717","record":{"aliases":["GHSA-7mfw-43c4-45mq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Sling XSS API","requires_auth":"none","summary":"Attackers can inject XSS payloads via crafted URLs due to improper validation in the Apache Sling XSS Protection API.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"sling_xss_protection_api","vendor":"apache"},{"product":"sling_xss_protection_api_compat","vendor":"apache"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site Scripting in Apache Sling XSS Protection API","id":"CVE-2017-15717","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2017"},"n_packages":4,"n_references":1,"next":{"headline":"Exposure of Sensitive Information in Hadoop","id":"CVE-2017-15718"},"packages":[{"ecosystem":"Maven","fixed":["2.0.4"],"introduced":["1.0.4"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss","purl":null,"source":"GHSA-7mfw-43c4-45mq"},{"ecosystem":"Maven","fixed":["2.0.4"],"introduced":["1.0.4"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss","source":"GHSA-7mfw-43c4-45mq"},{"ecosystem":"Maven","fixed":[],"introduced":[],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss.compat","purl":null,"source":"GHSA-7mfw-43c4-45mq"},{"ecosystem":"Maven","fixed":[],"introduced":[],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss.compat","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss.compat","source":"GHSA-7mfw-43c4-45mq"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2017-15716"},"products":["Apache Sling"],"published":"2018-01-10","related":[{"cvss_score":6.1,"headline":"Apache Sling XSS: XSS possible through XSSAPI.getValidHref()","id":"CVE-2026-73192","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":6.1,"headline":"Apache Sling XSS: CWE-79 multiple raw-string break-outs and ReDOS in XSSImpl","id":"CVE-2026-91852","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":6.1,"headline":"Apache Sling XSS: Sanitizer bypass, uncontrolled resource consumption and failure pf protection mechanisms","id":"CVE-2026-91928","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":6.1,"headline":"Apache Sling XSS: Improper escaping in the XSS Webconsole plugin","id":"CVE-2026-91999","kev_date_added":null,"published":"2026-09-23"},{"cvss_score":6.1,"headline":"Apache Sling XSS: Missing parser resource limits","id":"CVE-2026-92001","kev_date_added":null,"published":"2026-09-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Apache Software Foundation"]},"summary":"Attackers can inject XSS payloads via crafted URLs due to improper validation in the Apache Sling XSS Protection API.","url":"https://insights.sbomify.com/CVE-2017-15717/"}