CWE
64 79
Advisory Published
Advisory Published
Updated

CVE-2012-6708: XSS

First published: Thu Jan 18 2018(Updated: )

Affected versions of `jquery` are vulnerable to cross-site scripting. This occurs because the main `jquery` function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression. The result is that `jquery` may interpret HTML as selectors when given certain inputs, allowing for client side code execution. ## Proof of Concept ``` $("#log").html( $("element[attribute='<img src=\"x\" onerror=\"alert(1)\" />']").html() ); ``` ## Recommendation Update to version 1.9.0 or later.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Jquery Jquery<1.9.0

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.

Reference Links

Frequently Asked Questions

  • What is CVE-2012-6708?

    CVE-2012-6708 is a vulnerability in jQuery before version 1.9.0 that allows for Cross-site Scripting (XSS) attacks.

  • How does CVE-2012-6708 work?

    In vulnerable versions of jQuery, the jQuery(strInput) function does not differentiate selectors from HTML reliably, allowing for XSS attacks.

  • What is the severity of CVE-2012-6708?

    CVE-2012-6708 has a severity rating of 6.1 (Medium).

  • Which versions of jQuery are affected by CVE-2012-6708?

    Versions of jQuery from 1.7.1 to 1.8.3 are affected by CVE-2012-6708.

  • How can I fix CVE-2012-6708?

    To fix CVE-2012-6708, update jQuery to version 1.9.0 or later.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203