From f5531da3df4ea7a59d3861cd7dfd9be4f8c0b569 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 09:17:21 +0800 Subject: [PATCH] vendor/jquery-1.11.0.js: Ajax: Mitigate possible XSS vulnerability --- vendor/jquery-1.11.0.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vendor/jquery-1.11.0.js b/vendor/jquery-1.11.0.js index c5d7bd1..8e50fff 100644 --- a/vendor/jquery-1.11.0.js +++ b/vendor/jquery-1.11.0.js @@ -8802,6 +8802,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 ];