You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
var pattern = ":((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.) )(?:\\((['\"]?)((?:\\([^\\)] \\)|[^\\(\\)]*) )\\2\\))?";
var input = ":\\\b(\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
var re = new RegExp(pattern);
var matched = input.match(re);
var pattern = "((?:\\((?:\\([^()] \\)|[^()] ) \\)|\\[(?:\\[[^\\[\\]]*\\]|['\"][^'\"]*['\"]|[^\\[\\]'\"] ) \\]|\\\\.|[^ > ~,(\\[\\\\] ) |[> ~])(\\s*,\\s*)?((?:.|\\r|\\n)*)";
var input = "[\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
var re = new RegExp(pattern);
var matched = input.match(re);
We didn’t create a pull request because we're not sure if these cases are possible to take place in your program, we also do not understand the functionality of these regexes as you do. Thank you for your understanding.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are working on the ReDoS problem and detected 2 vulnerable regex(es) from your repository.
1:
:((?:[\w\u00c0-\uFFFF\-]|\\.) )(?:\((['"]?)((?:\([^\)] \)|[^\(\)]*) )\2\))?
in scripted/client/scripts/lib/jquery-1.7.2.min.js2:
((?:\((?:\([^()] \)|[^()] ) \)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"] ) \]|\\.|[^ > ~,(\[\\] ) |[> ~])(\s*,\s*)?((?:.|\r|\n)*)
in scripted/client/scripts/lib/jquery-1.7.2.min.jsPlease try the following:
We didn’t create a pull request because we're not sure if these cases are possible to take place in your program, we also do not understand the functionality of these regexes as you do. Thank you for your understanding.
The text was updated successfully, but these errors were encountered: