{"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 1 product.","exploited":"There is no known exploitation of CVE-2016-6798 in the wild and no public exploit code.","fix":"Upgrade org.apache.sling:org.apache.sling.xss to 1.0.12 or later.","what":"CVE-2016-6798 is a critical vulnerability in Apache Sling, published on 19 Jul 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-6798 and fix it if it is affected.\n\nWhat it is: CVE-2016-6798 is a critical vulnerability in Apache Sling, published on 19 Jul 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-6798 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.sling:org.apache.sling.xss (Maven): affected all versions; fixed in 1.0.12\n- org.apache.sling:org.apache.sling.xss (Maven): affected all versions; fixed in 1.0.12\n- org.apache.sling:org.apache.sling.xss.compat (Maven): affected all versions; fixed in 1.1.0\n- org.apache.sling:org.apache.sling.xss.compat (Maven): affected all versions; fixed in 1.1.0\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-2016-6798/ (Markdown: https://insights.sbomify.com/CVE-2016-6798/index.md)","id":"CVE-2016-6798","markdown":"https://insights.sbomify.com/CVE-2016-6798/index.md","name":"CVE-2016-6798","record":{"aliases":["GHSA-7g54-vgp6-jj5w"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Sling XSS API","requires_auth":"none","summary":"An attacker can exploit insecure XML parsing in Apache Sling to read sensitive files, perform SSRF, or cause denial of service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"sling","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"In the XSS Protection API module before 1.0.12 in Apache Sling, the method XSS.getValidXML() uses an insecure SAX parser to validate the input string, which allows for XXE attacks in all scripts which use this method to validate user input, potentially allowing an attacker to read sensitive data on the filesystem, perform same-site-request-forgery (SSRF), port-scanning behind the firewall or DoS the application.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2018-11-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-11-19T08:59:42Z","kind":"github_poc","ref":"https://github.com/tafamace/CVE-2016-6798","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"XML External Entity Reference in Apache Sling","id":"CVE-2016-6798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2016"},"n_packages":4,"n_references":2,"next":{"headline":"Information Exposure in cordova-android","id":"CVE-2016-6799"},"packages":[{"ecosystem":"Maven","fixed":["1.0.12"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss","purl":null,"source":"GHSA-7g54-vgp6-jj5w"},{"ecosystem":"Maven","fixed":["1.0.12"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss","source":"GHSA-7g54-vgp6-jj5w"},{"ecosystem":"Maven","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss.compat","purl":null,"source":"GHSA-7g54-vgp6-jj5w"},{"ecosystem":"Maven","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.xss.compat","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss.compat","source":"GHSA-7g54-vgp6-jj5w"}],"prev":{"headline":"Incorrect Authorization in Apache Tomcat","id":"CVE-2016-6797"},"products":["Apache Sling"],"published":"2017-07-19","related":[{"cvss_score":6.1,"headline":"Cross site scripting in Apache Sling","id":"CVE-2016-5394","kev_date_added":null,"published":"2017-07-19"},{"cvss_score":5.8,"headline":"Apache Sling Auth Core bundle vulnerable to Open Redirection","id":"CVE-2013-4390","kev_date_added":null,"published":"2013-10-24"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Apache Software Foundation"]},"summary":"An attacker can exploit insecure XML parsing in Apache Sling to read sensitive files, perform SSRF, or cause denial of service.","url":"https://insights.sbomify.com/CVE-2016-6798/"}