JakeRoggenbuck/regolith
A server-side TypeScript and JavaScript library immune to Regular Expression Denial of Service (ReDoS) attacks by using Rust and linear RegEx under the hood. Regolith has a linear worst case time complexity, compared to the default RegExp found in TypeScript and JavaScript, which has an exponential worst case.
27 best points · 25 comments · 2 Hacker News posts · 74 GitHub stars · View on GitHub
Hacker News discussions
- Show HN: Regolith – Regex library that prevents ReDoS CVEs in TypeScript (27 points, 25 comments, by roggenbuck, 2025-08-27)
- Show HN: Regolith – Regex library for TypeScript made to prevent ReDoS attacks (3 points, 0 comments, by roggenbuck, 2025-08-08)