From 15075ac8502eedbe64810b6f2ca1a08ecb1a3a1f Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Fri, 8 May 2026 01:23:40 +0700 Subject: [PATCH] flash-vue-admin/public/bpmnjs/index.js: Ajax: Mitigate possible XSS vulnerability --- flash-vue-admin/public/bpmnjs/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flash-vue-admin/public/bpmnjs/index.js b/flash-vue-admin/public/bpmnjs/index.js index 12a088ad..b3f9545a 100644 --- a/flash-vue-admin/public/bpmnjs/index.js +++ b/flash-vue-admin/public/bpmnjs/index.js @@ -60126,6 +60126,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 ];