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
We are working on the ReDoS problem and detected 2 vulnerable regex(es) from your repository.
1: ((-?\d+(,\d{3})*(\.\d+)?(x?\*?\d*\^\d+)?)|((\d+-)+\d+)|(_?[-\da-zA-Z\u4E00-\u9FFF\-]_?))+$ in HexoEditor/views/main/CodeMirror/editor.js
2: (`|~~|\*\*?|__)+$ in HexoEditor/views/main/CodeMirror/editor.js
Please try the following:
var pattern = "((-?\\d+(,\\d{3})*(\\.\\d+)?(x?\\*?\\d*\\^\\d+)?)|((\\d+-)+\\d+)|(_?[-\\da-zA-Z\\u4E00-\\u9FFF\\-]_?))+$";
var input = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\b";
var re = new RegExp(pattern);
var matched = input.match(re);
var pattern = "(`|~~|\\*\\*?|__)+$";
var input = "******************************************************************************************************************************\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:
We are working on the ReDoS problem and detected 2 vulnerable regex(es) from your repository.
1:
((-?\d+(,\d{3})*(\.\d+)?(x?\*?\d*\^\d+)?)|((\d+-)+\d+)|(_?[-\da-zA-Z\u4E00-\u9FFF\-]_?))+$
in HexoEditor/views/main/CodeMirror/editor.js2:
(`|~~|\*\*?|__)+$
in HexoEditor/views/main/CodeMirror/editor.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: