-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cdata re] halt with CPU 100% on some html #267
Comments
markdown-it/markdown-it@89c8620
|
A CDATA section cannot contain the string |
Thanks for explanation. I'm not very strong in regexps and not familiar at all with implementation differences. Didn't know that re2c does not support non-gready matches. Please, take a look if other JS regexps are ddos-able. @rlidwka did not found anything else, but it worth to duplucate this check for sure. |
Just for the reference: https://en.wikipedia.org/wiki/ReDoS I didn't find anything obvious, but a few other regexps are kinda fishy, worth checking out. |
Put this into dingus:
Similar to #263, found by @rlidwka .
Seems we should seriously revisit all attempts to parse HTML with regexp.
The text was updated successfully, but these errors were encountered: