GitHub Advisoryadvisory · Maven

GHSA-xwf4-88xr-hx2j Cross site scripting in Apache Sling

MEDIUM Published 2022-05-13 Modified 2022-11-03 Official page ↗
Aliases
CVE-2016-5394
Ecosystem
Maven
Packages
org.apache.sling:org.apache.sling.xss, org.apache.sling:org.apache.sling.xss.compat
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2022-11-03

Affected packages

• Maven org.apache.sling:org.apache.sling.xss: < 1.0.12 → fixed in 1.0.12 • Maven org.apache.sling:org.apache.sling.xss.compat: < 1.1.0 → fixed in 1.1.0

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.

Related

Alias · CVE (1)

  • CVE-2016-5394 In the XSS Protection API module before 1.0.12 in Apache Sling, the encoding done by the XSSAPI.encodeForJSString() method is not… vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References