From c34ed1c61ac059c55449497f57f5e62fecb067fd Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 11 May 2026 06:07:06 +0700 Subject: [PATCH] test/download/downTest/home/static/lib/js/jquery-1.10.1.js: Ajax: Mitigate possible XSS vulnerability --- test/download/downTest/home/static/lib/js/jquery-1.10.1.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/download/downTest/home/static/lib/js/jquery-1.10.1.js b/test/download/downTest/home/static/lib/js/jquery-1.10.1.js index 6f8c96758..66e2ab0ea 100644 --- a/test/download/downTest/home/static/lib/js/jquery-1.10.1.js +++ b/test/download/downTest/home/static/lib/js/jquery-1.10.1.js @@ -8406,6 +8406,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 ];