Merge 7e7e2f424d9a6deaed4b28d8854d9705fe1135c4 into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6

This commit is contained in:
Phuc-Thanh Nguyen 2026-05-17 23:32:25 +00:00 committed by GitHub
commit 9f5e7292e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8712,6 +8712,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 ];