Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2022

This PR contains the following updates:

Package Change Age Confidence
jquery-ui (source) 1.12.1 -> 1.13.2 age confidence

GitHub Vulnerability Alerts

CVE-2021-41184

Impact

Accepting the value of the of option of the .position() util from untrusted sources may execute untrusted code. For example, invoking the following code:

$( "#element" ).position( {
	my: "left top",
	at: "right bottom",
	of: "<img onerror='doEvilThing()' src='/404' />",
	collision: "none"
} );

will call the doEvilThing() function.

Patches

The issue is fixed in jQuery UI 1.13.0. Any string value passed to the of option is now treated as a CSS selector.

Workarounds

A workaround is to not accept the value of the of option from untrusted sources.

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.

CVE-2021-41182

Impact

Accepting the value of the altField option of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:

$( "#datepicker" ).datepicker( {
	altField: "<img onerror='doEvilThing()' src='/404' />",
} );

will call the doEvilThing function.

Patches

The issue is fixed in jQuery UI 1.13.0. Any string value passed to the altField option is now treated as a CSS selector.

Workarounds

A workaround is to not accept the value of the altField option from untrusted sources.

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.

CVE-2021-41183

Impact

Accepting the value of various *Text options of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:

$( "#datepicker" ).datepicker( {
	showButtonPanel: true,
	showOn: "both",
	closeText: "<script>doEvilThing( 'closeText XSS' )</script>",
	currentText: "<script>doEvilThing( 'currentText XSS' )</script>",
	prevText: "<script>doEvilThing( 'prevText XSS' )</script>",
	nextText: "<script>doEvilThing( 'nextText XSS' )</script>",
	buttonText: "<script>doEvilThing( 'buttonText XSS' )</script>",
	appendText: "<script>doEvilThing( 'appendText XSS' )</script>",
} );

will call doEvilThing with 6 different parameters coming from all *Text options.

Patches

The issue is fixed in jQuery UI 1.13.0. The values passed to various *Text options are now always treated as pure text, not HTML.

Workarounds

A workaround is to not accept the value of the *Text options from untrusted sources.

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.

CVE-2022-31160

Impact

Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. If you call .checkboxradio( "refresh" ) on such a widget and the initial HTML contained encoded HTML entities, they will erroneously get decoded. This can lead to potentially executing JavaScript code.

For example, starting with the following initial secure HTML:

<label>
	<input id="test-input">
	&lt;img src=x onerror="alert(1)"&gt;
</label>

and calling:

$( "#test-input" ).checkboxradio();
$( "#test-input" ).checkboxradio( "refresh" );

will turn the initial HTML into:

<label>
	<!-- some jQuery UI elements -->
	<input id="test-input">
	<img src=x onerror="alert(1)">
</label>

and the alert will get executed.

Patches

The bug has been patched in jQuery UI 1.13.2.

Workarounds

To remediate the issue, if you can change the initial HTML, you can wrap all the non-input contents of the label in a span:

<label>
	<input id="test-input">
	<span>&lt;img src=x onerror="alert(1)"&gt;</span>
</label>

References

https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.


Release Notes

jquery/jquery-ui (jquery-ui)

v1.13.2: jQuery UI 1.13.2 released

Compare Source

https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/

v1.13.1: jQuery UI 1.13.1 released

Compare Source

https://blog.jqueryui.com/2022/01/jquery-ui-1-13-1-released/

v1.13.0: jQuery UI 1.13.0 released

Compare Source

https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 8748741 to 884f993 Compare August 1, 2022 03:55
@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.48%. Comparing base (62615a8) to head (f8aa018).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1068   +/-   ##
=======================================
  Coverage   69.48%   69.48%           
=======================================
  Files          62       62           
  Lines        5306     5306           
  Branches     1149     1149           
=======================================
  Hits         3687     3687           
  Misses       1585     1585           
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 3 times, most recently from 01f44e3 to 740fee7 Compare August 10, 2022 19:54
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 740fee7 to be4f514 Compare August 16, 2022 00:51
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from 843cd23 to 7f74941 Compare September 6, 2022 15:39
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 7 times, most recently from 2b387aa to 2d404b8 Compare October 1, 2022 05:32
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 2d404b8 to 7b2fbc3 Compare October 3, 2022 05:34
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from d73a990 to bdb30f1 Compare November 18, 2022 18:29
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 3 times, most recently from 802dae6 to e0b27ea Compare December 7, 2022 05:06
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 3 times, most recently from 65ce003 to 69e9aef Compare December 15, 2022 09:41
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from 1875650 to fa336c7 Compare December 22, 2022 06:23
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 3 times, most recently from 5476b81 to 196fe1f Compare December 29, 2022 22:33
@renovate renovate bot changed the title Update dependency jquery-ui to 1.13.2 [SECURITY] Update dependency jquery-ui to 1.13.2 [SECURITY] - autoclosed Dec 31, 2022
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from 5d56d45 to 16431f7 Compare July 30, 2025 15:38
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 4 times, most recently from c412639 to 6622dee Compare August 14, 2025 15:30
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 6622dee to 1089ff1 Compare August 26, 2025 19:00
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 3 times, most recently from 2dbbe84 to 9dd1282 Compare September 5, 2025 14:22
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from bc7f86a to 7626e45 Compare September 16, 2025 16:00
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 7626e45 to d5680f9 Compare September 16, 2025 22:42
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 2 times, most recently from 0a606a1 to 46e32f6 Compare September 29, 2025 18:20
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 8 times, most recently from d3e6c7d to 7bd98c5 Compare October 16, 2025 17:36
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch 4 times, most recently from 9e373e7 to 0915b51 Compare November 11, 2025 01:20
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 0915b51 to 814d17f Compare November 25, 2025 20:54
@renovate renovate bot force-pushed the renovate/npm-jquery-ui-vulnerability branch from 814d17f to f8aa018 Compare November 27, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant