Skip to content

Do I need to worry about CWE-400 - Regexp DoS? #316

Closed Answered by blakeembrey
camjackson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @camjackson, I just published the security advisory related to ReDoS. It's been pending Express.js committing to patches for a couple of months which is why it's been a bit messy waiting: GHSA-9wv6-86v2-598j.

Does this library guarantee that the regexps it creates and uses under the hood are not vulnerable to DoS?

Unfortunately it's not guaranteed, except in v8. It's not possible to protect against every possible user input path right now without fully parsing user supplied regular expressions. As it's a little complex for me to write as an individual right now, I have opted to minimize supported features in v8 instead.

Are there certain strings I need to avoid when calling match an…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@camjackson
Comment options

Answer selected by blakeembrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants