CVE-2026-142652
Agenta: SQL injection in tracing full- text content filter (PyPI)
- Severity
- 7.7HighNetwork attack, low privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- None reported
- Exploit chance
- 0.88% in 30 daysPercentile60thEPSS, scored
- Listed fix
0.122.5for agentaFrom 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:NExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
agentaPyPI | 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 less0.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.
| Link | Source | Date |
|---|---|---|
| googlesky/CVE-2026-142652 | PoC in GitHub | 2026-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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Day | Changed | Sources |
|---|---|---|
| Exploit links, key facts | PoC in GitHub | |
| Published date | EUVD | |
| Published date | EUVD | |
| Affected packages, other IDs, published date, references | EUVD, OSV | |
| Affected packages, other IDs, key facts, references | GitHub Advisories, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/Agenta-AI/agenta/security/advisories/GHSA-96p7-33vc-xgf2
github.com/Agenta-AI/agenta/pull/7529
github.com/Agenta-AI/agenta/commit/345d6d3e22bc0ece92ebefdf11d8e453c658e51c
github.com/Agenta-AI/agenta/releases/tag/v0.122.5
github.com/advisories/GHSA-96p7-33vc-xgf2
github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142652.json
nvd.nist.gov/vuln/detail/CVE-2026-142652
github.com/Agenta-AI/agenta