From b2e8d652b2243d6588e5ea088c2c2649eb99f40d Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 08:33:32 +0800 Subject: [PATCH] bower_components/jquery/dist/jquery.js: Ajax: Mitigate possible XSS vulnerability --- bower_components/jquery/dist/jquery.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bower_components/jquery/dist/jquery.js b/bower_components/jquery/dist/jquery.js index 9f7b3d38..8ee61015 100644 --- a/bower_components/jquery/dist/jquery.js +++ b/bower_components/jquery/dist/jquery.js @@ -7745,6 +7745,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 ];