Web Security · Senior · Question 60 of 75

What is ReDoS?

/^(a+)+$/.test(input)

Explanation

In Node.js one slow regex freezes the whole process. Avoid nested quantifiers, limit input length, or use a linear-time regex engine.

Further reading

Problem with a question

Web Security · Senior · question 60

Test yourself

Take the Web Security · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz