CVE-2026-142206
PyPika through 0.51.1 contains an sql injection vulnerability that …
PyPika through 0.51.1 contains an sql injection vulnerability that allows attackers to inject SQL through unescaped pattern arguments in ClickHouse search functions and ToFixedString. Attackers controlling Match, Like, NotLike, MultiSearchAny, MultiMatchAny patterns or ToFixedString values can close string literals to bypass tenant filters or read other tables.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.py#L20-L33
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.py#L64-L78
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/type_conversion.py#L24-L30
- www.vulncheck.com/advisories/pypika-through-0.51.1-sql-injection-via-clickhouse-search-and
- nvd.nist.gov/vuln/detail/CVE-2026-142206
- cve.org/CVERecord?id=CVE-2026-142206
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.