diff --git a/src/thirdparty/jquery-2.1.3.js b/src/thirdparty/jquery-2.1.3.js index 79d631ff4..ca3d9cdda 100644 --- a/src/thirdparty/jquery-2.1.3.js +++ b/src/thirdparty/jquery-2.1.3.js @@ -7753,6 +7753,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 ];