Umami Reports API SQL injection turns a share link into a database boundary problem
Umami installations that expose reports through shared tokens need a prompt review. CVE-2026-138445 describes an SQL injection path in Umami through version 3.5.0. The public record says a holder of a share token or an authenticated user can send a crafted prefix field in a Reports API object filter to /api/reports/. The value reaches getFilterQuery, which concatenates it into a PostgreSQL WHERE clause without quoting. That is enough to read or modify data beyond the requested website.
The severity is not explained by the word "share" alone. A share token is often treated as a read-only convenience, but the repository's report builder still has to prove that every filter remains inside the tenant and object it was meant to query. When the filter expression is assembled as SQL text, the database receives whatever grammar the caller can inject. A caller may then alter predicates, reach rows belonging to another site, or change data if the application's database role has write permission.
The assigning CNA published a CVSS 4.0 score of 9.4. That score reflects a network-reachable, low-privilege condition with high confidentiality, integrity, and availability impact, plus impact beyond the vulnerable component. The CVSS value does not establish that every deployment is exploitable. The authenticated or shared-token prerequisite matters. A private instance without available share links has a smaller immediate attack surface, although an ordinary authenticated user may still satisfy the precondition.
The repair needs to happen in code. Umami's public fix is commit 98937e71bd776a44c58190051a58cdac811a5daf. Operators should move to a release that contains that change rather than relying on a signature or a blocking rule. If a current release is unavailable, disable shared report links and restrict report access until the deployment is updated. Revoking old share tokens is also sensible because a token that was exposed before the fix can continue to authorize report requests.
Application configuration can reduce damage while the patch is staged. The database account used by Umami should not be a superuser. It should have access only to the application schema and to the tables the product needs. Separate read and write roles where the application permits it. Audit any report filters that reference tables outside that schema. Review database logs for unusual WHERE clauses, repeated syntax errors, or queries touching cross-site records.
A web application firewall is not the main control. Generic SQL injection signatures may miss valid Umami request objects whose malicious content is encoded inside a nested filter. The stronger test is to inspect how report query construction binds values. Use parameterized SQL or a query builder that carries values separately from predicates. Treat sort fields, object keys, and prefixes as allowlisted identifiers instead of arbitrary text.
Teams should also audit tenant isolation from the database side. Run a report as one site, then confirm the generated query cannot select rows from another site even when the requested filter is malformed. Check whether repository methods receive a site ID from the request or from the session and whether the database policy independently enforces that boundary. A second test should use a write-capable application role against a disposable database. If a malformed filter can change a row, the product bug has exposed an avoidable authorization failure in the database layer.
The disclosure date is recent, and public exploit status should not be assumed. That uncertainty is not a reason to leave a network-facing report API in a known vulnerable state. It is a reason to avoid unsupported claims about active attacks. Patch the code, constrain the database role, review share-link exposure, and validate that the repaired query path can no longer cross a tenant boundary.
