Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2016-5394 EUVD-2022-5871GHSA-xwf4-88xr-hx2j

Cross site scripting in Apache Sling

Published Jul 19, 2017 · Updated Sep 16, 2024 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Sling prior to 1.0.12 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.sling:org.apache.sling.xss < 1.0.12 1.0.12 GHSA-xwf4-88xr-hx2j
Maven org.apache.sling:org.apache.sling.xss.compat < 1.1.0 1.1.0 GHSA-xwf4-88xr-hx2j

References