{"id":"CVE-2016-5394","published":"2017-07-19T15:00:00Z","modified":"2024-09-16T22:21:15Z","title":"In the XSS Protection API module before 1.0.12 in Apache Sling, the encoding done by the XSSAPI.encodeForJSString()…","vendor":"Apache","product":"Apache Sling","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02604,"percentile":0.85746,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525%40%3Cdev.sling.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/99870","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":17.15},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2024-05-31","earliestUrl":"https://github.com/epicosy/VUL4J-23","repos":[{"name":"epicosy/VUL4J-23","url":"https://github.com/epicosy/VUL4J-23","stars":0,"created":"2024-05-31"}]},"first":{"date":"2024-05-31","source":"PoC-in-GitHub","url":"https://github.com/epicosy/VUL4J-23"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Sling","versions":["prior to 1.0.12"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.xss","vulnerableRanges":["<1.0.12"],"patched":["1.0.12"],"from":["GHSA-xwf4-88xr-hx2j"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.xss.compat","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-xwf4-88xr-hx2j"],"provenance":"source"}],"summary":{"text":"The flaw is in the XSS Protection API module before version 1.0.12 of Apache Sling, where the XSSAPI.encodeForJSString() method is insufficiently restrictive and lets script tags pass through unencoded for certain input patterns. An attacker who can supply input that reaches this encoding routine could potentially trigger cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:49Z"},"euvd":{"id":"EUVD-2022-5871","exploited":false,"provenance":"source"}}