diff --git a/camera/jquery.js b/camera/jquery.js index 9f7b3d3..8ee6101 100644 --- a/camera/jquery.js +++ b/camera/jquery.js @@ -7745,6 +7745,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 ];