From c867474001cc6179616910dce07bededdaba71f9 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 17 Aug 2026 04:50:08 +0800 Subject: [PATCH] public/tinymce/plugins/leaui_mindmap/mindmap/main.js: Ajax: Mitigate possible XSS vulnerability --- public/tinymce/plugins/leaui_mindmap/mindmap/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/tinymce/plugins/leaui_mindmap/mindmap/main.js b/public/tinymce/plugins/leaui_mindmap/mindmap/main.js index 1ac2be8ee..855c982ae 100644 --- a/public/tinymce/plugins/leaui_mindmap/mindmap/main.js +++ b/public/tinymce/plugins/leaui_mindmap/mindmap/main.js @@ -7747,6 +7747,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 ];