Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

like-redos-linear-matcher.md

5 lines392 Bytes

Fix ReDoS (CWE-1333) in like()/ilike(): patterns are now matched with an iterative two-pointer walk instead of being compiled to a RegExp, so crafted patterns with many % wildcards can no longer trigger catastrophic backtracking on near-miss values. The matcher preserves SQL wildcard semantics when the input value itself contains % or _ characters.