CWE
79
Advisory Published
Advisory Published
Updated

CVE-2016-5394: XSS

First published: Wed Jul 19 2017(Updated: )

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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
maven/org.apache.sling:org.apache.sling.xss.compat<1.1.0
1.1.0
maven/org.apache.sling:org.apache.sling.xss<1.0.12
1.0.12
Apache Sling API<1.0.12

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2016-5394?

    CVE-2016-5394 is classified as a high severity vulnerability due to its potential to allow cross-site scripting (XSS) attacks.

  • How do I fix CVE-2016-5394?

    To fix CVE-2016-5394, upgrade to Apache Sling XSS Protection API module version 1.0.12 or higher.

  • What causes the vulnerability in CVE-2016-5394?

    The vulnerability in CVE-2016-5394 is caused by insufficient encoding in the XSSAPI.encodeForJSString() method, allowing script tags to pass through.

  • What applications are affected by CVE-2016-5394?

    CVE-2016-5394 affects versions of the Apache Sling XSS Protection API module prior to 1.0.12.

  • Is there a workaround for CVE-2016-5394?

    There are no effective workarounds for CVE-2016-5394; upgrading to a patched version is the recommended solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203