JavaScript · Senior · Question 32 of 75

What is ReDoS?

Explanation

Expressions like /^(a+)+$/ on a specially crafted string take exponential time and block the thread (especially dangerous on a Node.js server). Avoid nested quantifiers, limit input length, use safe engines.

Further reading

Problem with a question

JavaScript · Senior · question 32

Test yourself

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

Take this quiz