From bc2eba7696e4472aa3453102c93e3993ea276dc0 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 25 May 2026 05:42:18 +0800 Subject: [PATCH] js/vendor/jquery.js: Ajax: Mitigate possible XSS vulnerability --- js/vendor/jquery.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/vendor/jquery.js b/js/vendor/jquery.js index 7fc60fc..cba0c18 100644 --- a/js/vendor/jquery.js +++ b/js/vendor/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 ];