All vulnerabilities

PyPI

CVE-2026-142652

Agenta: SQL injection in tracing full-text content filter

Severity
High 7.7
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
0.122.5
Weakness
SQL injection (CWE-89)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Also known as
GHSA-96p7-33vc-xgf2
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
agentaPyPI · osv:PyPI:agenta
  • Every version before 0.122.5

About agenta

Weekly downloads (PyPI)
2,647PyPI Stats, 3 Dec 2026

This is the only vulnerability in agenta in our list.

References