Every CVESearch/Get API key

CVE-2026-142652

Agenta: SQL injection in tracing full-text content filter (PyPI)

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.7High
Network attack, low privileges, no user interactionCVSS 3.1, CVE List
Exploitation
None reported
1 exploit-related link
Exploit chance
0.88% in 30 days
Percentile60th
EPSS, scored
Listed fix
0.122.5 for agenta
From GitHub Advisories and OSV

Overview

Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in _handle_fts_field without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

Impact

Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Exploit chance over time

Scored once so far, on . The trend appears after a second daily score.

Affected

Packages 1

Affected packages
PackageAffectedFixed
agenta
PyPI
through 0.122.4
0.122.5
before 0.122.5, plus listed versions
0.1.00.1.10.1.100.1.110.1.12
Show 45 more versionsShow less
0.1.130.1.140.1.150.1.160.1.170.1.180.1.190.1.20.1.210.1.220.1.230.1.240.1.250.1.260.1.270.1.280.1.290.1.30.1.40.1.50.1.60.1.70.1.80.1.90.10.00.10.10.10.20.10.30.100.00.100.10.100.20.100.30.100.40.100.50.100.60.100.70.100.80.100.90.101.00.101.10.102.00.103.00.103.10.103.20.103.3
0.122.5

The JSON record also has 549 more versions.

Products 1

Exploits

Sources link exploit code, tools that only detect the flaw and other work on it, and most don’t say which a link is.

Exploit-related links
LinkSourceDate
googlesky/CVE-2026-142652PoC in GitHub2026-12-04

Sources

CVE List Score usedCVSS 3.17.7

Agenta: SQL injection in tracing full-text content filter

Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in _handle_fts_field without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.

Record
CVE-2026-142652
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-89
Updated
2026-12-03
EUVDEUVD-2026-143493CVSS 3.17.7

Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in _handle_fts_field without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.

Record
EUVD-2026-143493
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Updated
2026-12-03
GitHub AdvisoriesGHSA-96p7-33vc-xgf2CVSS 3.17.7

Agenta: SQL injection in tracing full-text content filter

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).

Record
GHSA-96p7-33vc-xgf2
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-89
Updated
2026-12-03
NVDCVSS 3.17.7

Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in _handle_fts_field without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.

Record
CVE-2026-142652
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-89
Updated
2026-12-03
OSVCVSS 3.17.7

Agenta: SQL injection in tracing full-text content filter

Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in _handle_fts_field without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.

Record
CVE-2026-142652
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-89
Updated
2026-12-04
OSVGHSA-96p7-33vc-xgf2CVSS 3.17.7

Agenta: SQL injection in tracing full-text content filter

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).

Record
GHSA-96p7-33vc-xgf2
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-89
Updated
2026-12-03

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Exploit links, key factsPoC in GitHub
Published dateEUVD
Published dateEUVD
Affected packages, other IDs, published date, referencesEUVD, OSV
Affected packages, other IDs, key facts, referencesGitHub Advisories, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open