Umami's report filters turned a dashboard feature into a SQL trust boundary
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Umami's report filters turned a dashboard feature into a SQL trust boundary
A fresh vulnerability disclosure for Umami shows how a small analytics convenience can become a database security problem when request data is allowed to choose the shape of a query. The issue, tracked as CVE-2026-138445, affects Umami versions through 3.5.0. The CVE record says a share token holder or authenticated user could place a crafted prefix value in a Reports API object filter, where Umami's query builder concatenated that value into a PostgreSQL WHERE clause. The record describes the result as SQL injection that could read or modify data beyond the requested website (CVE-2026-138445 record).
That wording matters. This was not an anonymous public endpoint in the description. The attacker still needed a path into the Reports API, either through an authenticated account or a share token. But once that boundary was crossed, the vulnerable field was not supposed to be a database expression at all. It was metadata from a filter object. The bug turned a value that should have described what to compare into a value that could influence which SQL expression was compared (CVE-2026-138445 record; Umami vulnerable params.ts at v3.5.0; Umami vulnerable prisma.ts at v3.5.0).
The patch is unusually useful because it explains the design mistake in plain code comments. In a commit dated November 25, 2026, Francis Cao changed object-filter construction so that only operator and value come from the request body. The patch also added tests that pass an injection string as both prefix and column, then verify that the resulting filter keeps the server's column and prefix instead (Umami patch commit; Umami fixed params.ts).
The result is a good case study for any application that builds analytics, search, reporting, or policy queries from JSON. Parameterized values are necessary, but they do not protect an application if untrusted input can still choose a column, table alias, sort expression, or SQL fragment around those parameters.
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
Google Cloud patched a critical path traversal flaw spanning Dataform, BigQuery Studio, and Colab Enterprise. The public record explains the cross-tenant impact, but not the exploit path. Here is what the evidence supports, what Git integration changes, and which controls still matter after a managed-service fix.
Nov 30, 2026 / Jahan
The boundary was the filter object
Umami's Reports API supports structured filters. A request does not merely provide a single search string. It can describe a field, an operator, a value, and repeated filters. The server converts those objects into an internal array before the query builder creates SQL. That conversion is where the vulnerable behavior lived (Umami vulnerable params.ts at v3.5.0; Umami v3.5.0 release notes).
In the version associated with 3.5.0, the object-filter branch checked that a filter had a name and a value, then returned a new object using the JavaScript spread operator. The spread copied every property supplied by the caller. After that, the function replaced some fields with server-derived values, including the normalized filter name, the mapped database column, and the parameter name. It did not replace prefix (Umami vulnerable params.ts at v3.5.0).
That omission looks small in isolation. It is not small in the next function. The SQL builder receives each normalized filter and constructs a column expression by joining the prefix and the mapped column. In the PostgreSQL path, the resulting expression is passed to mapFilter, which adds the table name and an operator such as = ANY, ILIKE, or a regular-expression comparison. The comparison value uses a placeholder. The column expression does not (Umami vulnerable prisma.ts at v3.5.0; Umami fixed prisma.ts).
This is the difference between a safe value and an unsafe identifier. A request value such as a URL path can be bound as a PostgreSQL parameter. PostgreSQL then treats it as data. A column or prefix has to be part of the SQL statement's structure, so an application must select it from a trusted server-side map. If a caller can supply text that becomes part of that structure, the placeholder around the comparison value does not close the hole (Umami vulnerable prisma.ts at v3.5.0).
The old code had the shape of a safe implementation. It did map filter names through FILTER_COLUMNS, and it did use placeholders for values. That is why a review focused only on the value path could miss the problem. The dangerous property was carried through a branch that appeared to be normalizing the object. The code validated some fields and silently trusted the rest (Umami vulnerable params.ts at v3.5.0; Umami vulnerable prisma.ts at v3.5.0).
The CVE description identifies getFilterQuery as the point that concatenated the unquoted prefix into PostgreSQL WHERE clauses. That gives the issue a narrower and more useful scope than the broad phrase "Umami has SQL injection." The relevant question for a defender is which request fields can reach query structure, which report endpoints call the shared builder, and which forms of access can reach those endpoints (CVE-2026-138445 record).
Illustration of the vulnerable data path from a Reports API filter object to PostgreSQL query structure. It explains the code flow and is not an exploit trace.
The patch's tests make the intended boundary explicit. They supply an injection marker in the request's prefix and column properties. The expected result contains the known url_path column, the original operator and value, and an undefined prefix when no server option supplied one. A second test supplies a server-side prefix of e. and verifies that it survives while the client-supplied prefix does not (Umami patch commit).
That is more than a unit test for one regression. It describes an ownership rule. The client owns the operation and the data being compared. The server owns the SQL identifiers and aliases. Once stated that way, the fix becomes easier to audit across the rest of the application.
Why the release number is easy to misread
The affected range in the CVE record is less than or equal to 3.5.0 (CVE-2026-138445 record). Umami's v3.5.0 release was published on November 12, 2026, and its release notes describe reporting and sharing changes, along with several security fixes (Umami v3.5.0 release notes). The patch commit for this issue was created on November 25, thirteen days after that release (Umami patch commit).
As of November 30, 2026, the repository's release listing still showed v3.5.0 as the latest release checked for this article (Umami releases listing). That creates an important operational distinction. A fix can exist in the source repository before a versioned release contains it. A deployment built from a later commit may include the fix even when its package metadata still looks close to 3.5.0. Conversely, a deployment labeled 3.5.0 should not be assumed to include a post-release commit.
Operators should therefore verify the actual source revision or wait for a vendor release that explicitly includes the patch. If the deployment is built from source, inspect src/lib/params.ts and confirm that the object-filter branch constructs a fresh object from the server-derived name, parameter name, column, operator, value, and server option prefix. Do not treat a version string alone as proof when the patch landed after that tag (Umami patch commit; Umami vulnerable params.ts at v3.5.0; Umami fixed params.ts).
This also illustrates a common problem with vulnerability triage. The release number answers which published package a vendor has labeled, but it does not always answer which source tree a running container or image contains. Self-hosted software adds another layer because maintainers may pull a moving image tag, build from a commit, or apply local patches. Asset inventory needs both the product version and the build provenance.
What an attacker could and could not assume
The public record supports a constrained threat model. A share token holder or authenticated user could reach the vulnerable behavior, and the CVE record describes the possible result as reading or modifying data beyond the requested website (CVE-2026-138445 record). That does not establish that every authenticated user could reach every report endpoint, nor that a share token automatically granted unrestricted database access. The available evidence describes the injection primitive and its potential impact, not a universal bypass of all Umami authorization checks.
The difference matters for incident response. A team should identify which accounts had report access, which share links were active, and which websites those principals could view. It should then compare that access with the database privileges held by the Umami application. The CVE's high impact ratings describe what the vulnerability could allow in the affected context. They do not prove that a specific installation was exploited or that a particular database record was read (CVE-2026-138445 record).
There is also no need to invent an exploit demonstration to understand the defect. The vulnerable source shows the data-flow break, the CVE identifies the reachable API family and the required access level, and the patch tests show the corrected ownership rule. Those three pieces are enough to establish why the input was dangerous and what a fix must prevent (CVE-2026-138445 record; Umami patch commit; Umami vulnerable prisma.ts at v3.5.0).
Teams investigating exposure should preserve application and reverse-proxy logs before rotating or deleting share links. Search for unusual requests to Reports API routes, especially requests that use object-filter bodies with fields outside the documented filter shape. That recommendation is an investigation strategy, not evidence that a particular log pattern proves exploitation. The public sources reviewed here do not provide a forensic signature or an exploitation campaign, so responders should avoid treating a suspicious request as confirmation without database or application evidence.
If the application database credentials are shared with other services, containment should also consider the database account's permissions. The CVE describes possible reads or writes beyond the requested website, but the eventual blast radius still depends on the database role, row-level controls, isolation between tenants, backups, and the report endpoints enabled in the deployment (CVE-2026-138445 record). Reducing those privileges does not replace patching. It changes the consequence if a query-construction boundary fails again.
Illustration comparing field ownership before and after the patch. The fix keeps SQL structure on the server while allowing the request to supply the operation and bound data value.
The engineering lesson is about ownership
The safest part of the patch is not the removal of the spread operator by itself. It is the explicit decision about which fields are allowed to cross the request boundary. The commit comment says that only operator and value are taken from the client because everything else ends up in SQL text (Umami patch commit).
That rule can be applied beyond Umami. A filter API should parse the incoming object into a narrow internal type instead of preserving arbitrary properties. The parser should derive the field name from a server-side allowlist. It should derive the physical column from that name. It should accept the operator only from a finite set, then bind the comparison value through the database driver's parameter mechanism. If a table alias or join prefix is needed, the caller should select it through a server-side option, not send it in the request body.
The distinction between operator and value is worth examining too. The patch leaves both under client control, but they do not have equal risk. The operator is still syntax-like, so it must be validated against the application's known operator constants. The value is data, so it must be bound. A safe design therefore has two separate checks: an enum check for the operator and parameter binding for the value. Treating both as generic strings would recreate the same class of mistake in another field.
Tests should follow the data into the final query, not stop at the parser. Umami's patch adds a test that checks the normalized filter object. That is useful because the object is the handoff point between request parsing and SQL generation. A stronger regression suite can also assert that every supported object-filter field produces a server-known column, that unexpected structural keys are discarded, and that server prefixes remain fixed for each query context. The goal is to test the trust boundary, not merely the function's return shape (Umami patch commit; Umami fixed params.ts; Umami vulnerable prisma.ts at v3.5.0).
Static analysis can help, but it will not understand every query builder. A review rule that flags string interpolation in SQL is valuable, yet this defect shows why the risky string may be assembled several functions before the query is executed. Reviewers should trace fields named column, table, prefix, orderBy, groupBy, join, or expression from the request parser to the database call. Parameterization protects values. It does not automatically validate identifiers.
The same logic applies to analytics systems because reporting features tend to accept more structure than ordinary CRUD endpoints. A dashboard may allow filters, cohorts, segments, breakdowns, comparisons, and saved reports. Each feature increases the number of places where a request can influence query shape. Reusing a shared filter builder is good for consistency, but it also makes one missed property a cross-endpoint issue. The right control is a single strict internal representation, backed by tests that exercise every caller.
What to do now
If you run a self-hosted Umami deployment at 3.5.0 or earlier, treat it as affected until you have verified a source revision that contains the November 25 patch or a later release that includes it (CVE-2026-138445 record; Umami patch commit; Umami releases listing). Do not assume that an image rebuilt from an unchanged tag has picked up the fix. Record the image digest or source commit, rebuild from a known revision, and validate the running container rather than only the build pipeline.
Review which users and share tokens could access reports, and reduce unnecessary access while the upgrade is prepared. Check whether the application database role has broader permissions than the service needs. If logs show suspicious report requests, preserve them and investigate database activity before treating the issue as a routine patch event. The sources do not establish active exploitation, so the correct language for an investigation is "potential exposure" until evidence supports something stronger (CVE-2026-138445 record).
Finally, keep the patch's ownership rule in code review checklists. When a report API accepts a JSON object, ask which properties are data, which are operators, and which are SQL structure. The last category should come from the server. That question is portable, and it catches bugs that a version-specific signature may not.