Skip to content

Commit bc2eba7

Browse files
committed
js/vendor/jquery.js: Ajax: Mitigate possible XSS vulnerability
1 parent 5d34ed4 commit bc2eba7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/vendor/jquery.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9293,6 +9293,11 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) {
92939293
// Convert response if prev dataType is non-auto and differs from current
92949294
} else if ( prev !== "*" && prev !== current ) {
92959295

9296+
// Mitigate possible XSS vulnerability (gh-2432)
9297+
if ( s.crossDomain && current === "script" ) {
9298+
continue;
9299+
}
9300+
92969301
// Seek a direct converter
92979302
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
92989303

0 commit comments

Comments
 (0)