ReDoS in Three Engines: PHP Gives Up, Python Never Does, and Node Freezes Everything
- Created
- 3 Dec 2026
- Last reply
- less than a minute ago
- Replies
- 0
- Views
- 0
- Reactions
- 0
Discussion of the blog article ReDoS in Three Engines: PHP Gives Up, Python Never Does, and Node Freezes Everything.
I ran the textbook catastrophic regex through PCRE in PHP 8.6, Python 3.15's re and V8 in Node 26. Python took 2.5 seconds on a 27-character string and kept doubling, Node froze its event loop, and PHP stopped in 2 ms by returning false, which turned a deny rule into an allow rule.
Discussion thread — share findings, corrections and follow-ups below.