diff --git a/static/jquery/jquery.js b/static/jquery/jquery.js index 7fc60fca7..cba0c18c1 100644 --- a/static/jquery/jquery.js +++ b/static/jquery/jquery.js @@ -9293,6 +9293,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 ];