From bc6bbcff0e33e764d5522ded8c80f5215b8154f9 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Sun, 17 May 2026 23:57:38 +0800 Subject: [PATCH] docs/_static/jquery-3.5.1.js: Ajax: Mitigate possible XSS vulnerability --- docs/_static/jquery-3.5.1.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/_static/jquery-3.5.1.js b/docs/_static/jquery-3.5.1.js index 5093733..9907159 100644 --- a/docs/_static/jquery-3.5.1.js +++ b/docs/_static/jquery-3.5.1.js @@ -9218,6 +9218,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 ];