From 99acae8947483d76b1bde6d6cbb2f1c71a57198d Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 11 May 2026 07:34:16 +0700 Subject: [PATCH] public/dev/lib/jquery-ui/external/jquery/jquery.js: Ajax: Mitigate possible XSS vulnerability --- public/dev/lib/jquery-ui/external/jquery/jquery.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/dev/lib/jquery-ui/external/jquery/jquery.js b/public/dev/lib/jquery-ui/external/jquery/jquery.js index 7fc60fca7..cba0c18c1 100644 --- a/public/dev/lib/jquery-ui/external/jquery/jquery.js +++ b/public/dev/lib/jquery-ui/external/jquery/jquery.js @@ -9293,6 +9293,11 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) { // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { + // Mitigate possible XSS vulnerability (gh-2432) + if ( s.crossDomain && current === "script" ) { + continue; + } + // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ];