From 67264774cd94c6babca161f0891ab561ed212b68 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 08:38:16 +0800 Subject: [PATCH] public/lib/UEditor/third-party/jquery-1.10.2.js: Ajax: Mitigate possible XSS vulnerability --- public/lib/UEditor/third-party/jquery-1.10.2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/lib/UEditor/third-party/jquery-1.10.2.js b/public/lib/UEditor/third-party/jquery-1.10.2.js index c5c648255..0de1a023c 100644 --- a/public/lib/UEditor/third-party/jquery-1.10.2.js +++ b/public/lib/UEditor/third-party/jquery-1.10.2.js @@ -8388,6 +8388,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 ];