Skip to content

Commit bf986a3

Browse files
committed
Merge branch 'main' of github.com:netalertx/NetAlertX
2 parents cfa7517 + 4c7ea21 commit bf986a3

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)