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 ];