HIGHCVSS v3.1 7.7Vulnerability

CVE-2026-142652

### Impact The full-text `content` filter used by the span query endpoint (`POST /api/spans/query`) inserted the user-supplied search term into the SQL query without parameter binding or escaping. A single quote in the search term ends the SQL string literal, and the rest of the term runs as SQL. Any authenticated user who can view spans in their own project can send this filter. The query runs against the tracing database, so an attacker can read tracing data from every project and every tenant, including other tenants' traces and spans. The attacker reads the data blind, for example through boolean or timing conditions. The tracing data is stored in a separate Postgres database. Users, API keys and secrets are stored in a different database, and this query cannot reach them. ### Affected code `api/oss/src/dbs/postgres/tracing/utils.py`, function `_handle_fts_field`. ### Patches The issue is fixed in version 0.122.5. The search term is now passed to `websearch_to_tsquery` as a bound query parameter. A regression test covers quoted and SQL-like search terms. ### Workarounds There is no workaround. Upgrade to 0.122.5 or later. Self-hosted operators can reduce the impact by running the API with a database role that is not a superuser and that has access only to the Agenta databases. ### Credits Reported by Lee Zhi Yang ([@Xeraaaaaaa](https://github.com/Xeraaaaaaa)).

Properties

Summary
Agenta: SQL injection in tracing full-text content filter
Severity
high
Nvd fetched at
2026-12-04T15:00:48.841578+00:00
Epss score
0.00875
Cvss score
7.7
Cvss severity
HIGH
Retrieved at
2026-12-04T15:02:58+00:00
Ghsa published
2026-12-03T17:59:37Z
Source url
https://github.com/advisories/GHSA-96p7-33vc-xgf2
Ghsa updated
2026-12-03T17:59:38Z
Ghsa id
GHSA-96p7-33vc-xgf2
Last source
FIRST EPSS
Score
7.7
Cvss version
3.1
Cve id
CVE-2026-142652
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
First seen by Signal
2026-12-03T18:53:57+00:00
Name
CVE-2026-142652
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Related Entities (3)

AFFECTS (1)

→[Software]pip/agenta

VULNERABLE_TO (1)

←[Software]pip/agenta

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-142652 (CVSS v3.1 7.7) — Ninja Signal Threat Intelligence | Ninja Signal