From b1f41bd3eccd3eab72cf336f6b9608de83b54c71 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 09:14:40 +0800 Subject: [PATCH] vendor/js/vendor.js: Ajax: Mitigate possible XSS vulnerability --- vendor/js/vendor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vendor/js/vendor.js b/vendor/js/vendor.js index 30d86482..0b850b68 100644 --- a/vendor/js/vendor.js +++ b/vendor/js/vendor.js @@ -7560,6 +7560,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 ];