Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.sling/org.apache.sling.xss.compat
  4. ›
  5. CVE-2016-5394

CVE-2016-5394: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 13, 2022 (updated October 11, 2023)

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.

References

  • www.securityfocus.com/bid/99870
  • github.com/advisories/GHSA-xwf4-88xr-hx2j
  • github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529
  • github.com/jensdietrich/xshady-release/tree/main/CVE-2016-5394
  • lists.apache.org/thread.html/332166037a54b97cf41e2b616aaed38439de94b19b204841478e4525@%3Cdev.sling.apache.org%3E
  • nvd.nist.gov/vuln/detail/CVE-2016-5394

Code Behaviors & Features

Detect and mitigate CVE-2016-5394 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-707: Improper Neutralization
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.apache.sling/org.apache.sling.xss.compat/CVE-2016-5394.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.