Skip to content
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

Catastrophic backtracking regex condition #64

Open
tregoning opened this issue Jul 18, 2021 · 0 comments
Open

Catastrophic backtracking regex condition #64

tregoning opened this issue Jul 18, 2021 · 0 comments

Comments

@tregoning
Copy link
Contributor

tregoning commented Jul 18, 2021

Looks like the current linkify regular expression does not handle well strings with a significant number of whitespaces characters in a row (potentially a Catastrophic backtracking regex condition / ReDoS?)

Here is a reduced test case that replicates the root issue showing the potential regex fix and the current regex crashing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant