Cross-site Scripting (XSS) Affecting jquery-ui-dist package, versions <1.13.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-JQUERYUIDIST-7266552
  • published17 Jun 2024
  • disclosed10 Jul 2022
  • creditElkano

Introduced: 10 Jul 2022

CVE-2022-31160  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade jquery-ui-dist to version 1.13.2 or higher.

Overview

jquery-ui-dist is a "no-changes" fork/repackage of the jquery-ui .zip release artifacts.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the initialization of check-box-radio widget on an input tag enclosed within a label, which leads to the parent label contents being considered as the input label.

Exploiting this vulnerability is possible if a .checkboxradio( "refresh" ) call is executed on such a widget, and the initial HTML contains encoded HTML entities, leading them to be erroneously decoded.

CVSS Scores

version 3.1