Skip to content

Fix ReDoS (GHSL-2021-110)#243

Closed
kevinbackhouse wants to merge 2 commits intopython-validators:masterfrom
kevinbackhouse:fix-redos
Closed

Fix ReDoS (GHSL-2021-110)#243
kevinbackhouse wants to merge 2 commits intopython-validators:masterfrom
kevinbackhouse:fix-redos

Conversation

@kevinbackhouse
Copy link
Copy Markdown

Remove two + characters from the regex. They don't make any difference to the string that the regex can match, but they're causing a ReDoS. I've also added a regression test for the ReDoS.

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

Successfully merging this pull request may close these issues.

1 participant