From 24d6dc2a48891649396c16f9e856824db42972c7 Mon Sep 17 00:00:00 2001 From: alerambo Date: Tue, 3 Dec 2024 12:27:48 +0100 Subject: [PATCH] FIX CVE-2021-32821 Fix CVE-2021-32821 reference: https://security.snyk.io/vuln/SNYK-JS-MOOTOOLS-6516631 --- Source/Slick/Slick.Parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Slick/Slick.Parser.js b/Source/Slick/Slick.Parser.js index c9acb4f7e..bccc53e80 100644 --- a/Source/Slick/Slick.Parser.js +++ b/Source/Slick/Slick.Parser.js @@ -97,7 +97,7 @@ __END__ )?\ )" */ - "^(?:\\s*(,)\\s*|\\s*(+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)" + "^(?:\\s*(,)\\s*|\\s*(+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"'])(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()\"']*)+))\\))?)" .replace(//, '[' + escapeRegExp('>+~`!@$%^&={}\\;/g, '(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])') .replace(//g, '(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])')