From dc0ef7c23debeadb0391945ef639921887859147 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 25 May 2026 04:04:44 +0800 Subject: [PATCH] Public/libs/jquery/2.x/jquery.js: Ajax: Mitigate possible XSS vulnerability --- Public/libs/jquery/2.x/jquery.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Public/libs/jquery/2.x/jquery.js b/Public/libs/jquery/2.x/jquery.js index eed17778..3a0cad19 100644 --- a/Public/libs/jquery/2.x/jquery.js +++ b/Public/libs/jquery/2.x/jquery.js @@ -7758,6 +7758,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 ];