On this page (7 sections)

A critical SQL injection flaw, CVE-2026-138445, has been recorded in Umami, the open source web analytics application, in versions through 3.5.0. According to the NVD entry, someone holding a share token or an authenticated user can inject SQL through a crafted prefix field in Reports API object filters.

If you self-host Umami with a PostgreSQL database, especially if you hand out public share links, this is worth checking today. At the time of writing the research available to us comes from a single record, so some details, such as a fixed release and any exploitation, are not confirmed.

What happened

The NVD record, published on 2026-11-29, describes an SQL injection in how Umami builds database queries for its Reports API. A function called getFilterQuery takes the prefix field from object filters and concatenates it, unquoted, into the WHERE clause of Postgres queries. Because the value is not treated as data, a crafted prefix can change the meaning of the query.

The record says this lets an attacker read or modify data beyond the website they were meant to query. The affected endpoints are under /api/reports/.

Technical details in plain terms

SQL injection happens when user-supplied text is pasted directly into a database command instead of being passed as a separate parameter. The database cannot tell the difference between the developer's query and the attacker's additions. This weakness class is catalogued as CWE-89.

Two details from the record matter for risk:

  • The input is a filter field (prefix) that normally just narrows a report. It is not something most operators would think of as sensitive.
  • The caller needs either a share token or an authenticated account. That is a lower bar than full admin access: a share token is the credential behind a publicly shared dashboard link.

Analytics databases often hold more than page views. Depending on how an instance is used, they can contain user accounts, website definitions, share tokens and event data. The record says data can be read or modified, so both confidentiality and integrity are in scope. We have no further detail on exactly which tables or what impact beyond that statement.

The record refers to Postgres WHERE clauses. The research does not say whether Umami setups on other databases are affected, so do not assume they are safe or unsafe; check with the project.

Who is affected

Any Umami instance running version 3.5.0 or earlier is in the affected range as described. Exposure is highest where:

  • The instance is reachable from the internet and uses PostgreSQL.
  • Share links are published for dashboards, since any holder of such a token meets the access condition in the record.
  • Many users have accounts, for example agencies giving clients logins, because any authenticated user qualifies.
  • The Umami database is shared with other applications or holds data beyond analytics.

Hosted or managed Umami offerings are not discussed in the research, so check with your provider about their status.

How to check your exposure

First find out which version you run. The version is typically shown in the Umami admin interface or in your deployment files, such as the container image tag or the package.json of your checkout. If you deploy with Docker Compose, this read-only command lists the images and tags in use on the host (run it in the directory of your compose file):

List container images and tags for a Docker Compose deployment (read-only)Shell
docker compose images

If the version is 3.5.0 or lower, treat the instance as affected. Then review who can reach the Reports API:

  • List active share links and note which ones are public.
  • List user accounts and remove any that are no longer needed.
  • Check whether the instance is exposed directly to the internet or sits behind a VPN or access proxy.

To look for suspicious use, search your reverse proxy access logs for requests to the reports endpoints. This grep shows requests to paths under /api/reports/ in an nginx access log (adjust the path to your log location); look for unusual volumes, unfamiliar client addresses or very long or odd-looking query strings:

Find requests to the Reports API in an nginx access log (read-only)Shell
grep '/api/reports/' /var/log/nginx/access.log | less

Also review your PostgreSQL logs for query errors around the same times, since malformed injected input often produces syntax errors.

What to do now

The research references an upstream commit and a VulnCheck advisory, but does not state a fixed release number. Confirm the current fixed version on the Umami project page before upgrading, and do not assume a particular version number is safe without checking.

  1. Identify every Umami instance you run and its version.
  2. Check the Umami repository and release notes for a version that includes the fix, and upgrade as soon as one is confirmed. Back up the database first.
  3. Until you can upgrade, restrict access to the instance with a VPN, IP allowlist or authenticating reverse proxy, at least for the /api/reports/ paths.
  4. Revoke or regenerate public share links you do not strictly need.
  5. Remove unused user accounts and review who holds credentials.
  6. Review the database role Umami uses and limit its privileges to what the application needs.
  7. Review access and database logs for unusual /api/reports/ activity since the instance was exposed.
  8. If you find signs of abuse, rotate Umami user passwords and any secrets stored in the database, and follow an incident process.
Caution. Upgrading or restarting Umami interrupts analytics collection and can run database migrations. Take a database backup and plan a short maintenance window first.
Tip. A web application firewall in front of the instance can add a layer of filtering for injection patterns, but it is not a substitute for upgrading. See what a WAF is for what it can and cannot do.

Detection and monitoring afterwards

SQL injection leaves traces in places beyond the application. Keep these in view for the weeks after you patch:

  • Reverse proxy logs: spikes or odd parameters on /api/reports/ requests.
  • Database logs: syntax errors, unusually large result sets or queries touching tables unrelated to reports.
  • Account activity: new users, changed passwords or newly created share tokens you do not recognize.
  • Uptime and certificate changes on the analytics host; Webforta Monitor can watch uptime, certificates, DNS and header changes if you want an outside view.

If you also run public sites that embed the Umami tracking script, an outside-in check such as the free security headers checker helps confirm your sites are not leaking more than intended, though it cannot see inside an analytics backend.

What is and is not confirmed

The technical description comes from the NVD record, and the research notes that only one independent publisher covers this story so far. The CVSS score of 9.4 is as listed in the research; the research does not say who assigned it. We have not seen confirmation of active exploitation, a public proof of concept or a fixed version number, so none is claimed here. This article will be most useful if you recheck the Umami repository and the VulnCheck advisory for updates.

For broader hygiene on exposed admin and analytics tools, see our guide to small business website security.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-138445: Umami through 3.5.0 contains an sql injection vulnerability that allows share token holders or authenticated users to inject SQL by supplying a crafted prefix…nvd.nist.gov ·
  • Umami
  • SQL injection
  • CVE-2026-138445
  • analytics
  • PostgreSQL
  • self-hosted