{"cve":"CVE-2016-5394","nvd":{"published":"2017-07-19T15:29:00.180","modified":"2026-06-17T00:49:19.870","status":"Modified","description":"In the XSS Protection API module before 1.0.12 in Apache Sling, the encoding done by the XSSAPI.encodeForJSString() method is not restrictive enough and for some input patterns allows script tags to pass through unencoded, leading to potential XSS vulnerabilities.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["http://www.securityfocus.com/bid/99870","https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E","http://www.securityfocus.com/bid/99870","https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E"],"products":["apache:sling"],"source":"nvd","synced_at":"2026-10-19T20:44:47.710380879+00:00"},"epss":{"cve":"CVE-2016-5394","score":0.02604,"percentile":0.85375,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xwf4-88xr-hx2j","url":"https://osv.dev/vulnerability/GHSA-xwf4-88xr-hx2j","summary":"Cross site scripting in Apache Sling","modified":"2024-02-16T08:25:12.105780Z","packages":[{"ecosystem":"Maven","name":"org.apache.sling:org.apache.sling.xss","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss","ranges":["<1.0.12"],"fixed":["1.0.12"]},{"ecosystem":"Maven","name":"org.apache.sling:org.apache.sling.xss.compat","purl":"pkg:maven/org.apache.sling/org.apache.sling.xss.compat","ranges":["<1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}