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
The affected code is located in markdown2.py-line2251. It uses the vulnerable regular expression \*\*(?=\S)(.+?[*_]*)(?<=\S)\*\*. When the match fails, it will cause catastrophic backtracking.
I trigger the vulnerability using the python script below
Activity
nicholasserra commentedon Jan 17, 2023
Thanks for the report! Yes if you'd like to contribute a patch a PR is welcome :)
Merge pull request #531 from Crozzers/repair_ReDoS
Fix trentm#493 persisting when `code-friendly` extra enabled due to r…
Merge pull request #532 from Crozzers/fix-code-friendly-specific-redos