Skip to content

Commit 4c7ea21

Browse files
authored
Merge pull request #1582 from navnitan-7/fix/cve-2015-9251-jquery-ajax
Potential Vulnerability in Cloned Code
2 parents d17256c + 8b80a6d commit 4c7ea21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

front/lib/datatables/datatables.js

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

9062+
// Mitigate possible XSS vulnerability (gh-2432)
9063+
if ( s.crossDomain && current === "script" ) {
9064+
continue;
9065+
}
9066+
90629067
// Seek a direct converter
90639068
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
90649069

0 commit comments

Comments
 (0)