TRAP v2.1.1 — ReDoS check
A small, additive hardening release. No breaking changes — every prior verdict still holds.
What's new
- Regex denial of service (ReDoS) check (Phase 3). TRAP now enumerates the regexes that run against untrusted input and flags any that can backtrack catastrophically — nested or overlapping quantifiers (
(a+)+,(.*)*) or unbounded alternation against unbounded input. It calls out that a single crafted string can pin a CPU core, and on a single-threaded runtime (e.g. Node) freeze every unrelated request in flight — then requires a concrete fix (length cap, anchoring, or a linear-time engine like RE2), not just "review the regex."
Links
TRAP.md— the updated promptprompts/TRAP-v2.1.1.md— versioned snapshot- Full CHANGELOG
Find it useful? https://www.buymeacoffee.com/bikra