Skip to main content
← All vulnerabilities
CVE-2022-31160GHSA-H6GJ-6JJQ-H8G9

jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.13.2, 8.0.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( "refresh" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jquery jquery-ui

    fixed in 1.13.2

  • jquery-uinpm

    fixed in 1.13.2

  • org.webjars.npm:jquery-uiMaven

    fixed in 1.13.2

  • jquery-ui-railsRubyGems

    fixed in 8.0.0

  • jQuery.UI.CombinedNuGet

    fixed in 1.13.2

References 10

GitHub · jquery/jquery-ui

blog.jqueryui.com

drupal.org

security.netapp.com

lists.fedoraproject.org

lists.debian.org

GitHub · CyberOne-TeamARES/jquery-cve-2022-31160