{
  "schemaVersion": "guard-threat-campaign/v1",
  "id": "HGTC-2026-0DDBBA66",
  "slug": "cve-2026-138445-umami-sql-injection-reports-api",
  "title": "Umami Reports API takes a filter field as raw SQL (CVE-2026-138445)",
  "aliases": [
    "CVE-2026-138445"
  ],
  "summary": "CVE-2026-138445 is a SQL injection flaw in Umami, the self-hosted web analytics tool, affecting every version through 3.5.0. Report requests carry object filters; the filter builder passes client-supplied fields, including prefix, straight through, and the query builder concatenates that prefix unquoted into the Postgres WHERE clause, so SQL text in a crafted prefix runs against the instance database. The CVE record names share token holders and authenticated users as the callers who can reach the /api/reports/ endpoints this way, and the result is reading or modifying data beyond the requested website. VulnCheck rates the flaw 9.9 Critical under CVSS 3.1 with scope changed, and 9.4 under CVSS 4.0; the weakness is CWE-89. The fix was committed to the Umami main branch on November 25, 2026 (commit 98937e7: the filter builder takes only the operator and the value from the client), but no fixed release exists yet, and v3.5.0 from November 12, 2026 is still the newest release an operator can update to. This page gives operators the version and build readings that settle exposure, the request-shape hunt, the mirror of the fix commit's own test to run after patching, and the interim step that matters most here: withdraw share links until a fixed build is running. The CVE is not in the CISA KEV catalog read for this page, and no source read here reports attacks in the wild.",
  "status": "published",
  "severity": "critical",
  "confidence": "high",
  "uncertainty": "The fix-release state is stated as read on November 30, 2026 and will change when Umami ships a release carrying the commit. The caller list and the result rest on the CVE record. HOL did not reproduce the flaw.",
  "firstObservedAt": "2026-11-25T00:00:00.000Z",
  "lastObservedAt": "2026-11-29T00:00:00.000Z",
  "publishedAt": "2026-11-30T08:55:24.757Z",
  "reviewedAt": "2026-11-30T08:55:04.411Z",
  "expiresAt": "2026-11-29T00:00:00.000Z",
  "reviewer": "HOL Guard Security Publishing",
  "sources": [
    {
      "id": "nvd-cve-2026-138445",
      "label": "NVD record for CVE-2026-138445 (VulnCheck CNA, CVSS 3.1 9.9, CVSS 4.0 9.4, CWE-89)",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138445",
      "sourceType": "vulnerability_database",
      "observedAt": "2026-11-29T00:00:00.000Z"
    },
    {
      "id": "umami-fix-commit-98937e7",
      "label": "Umami fix commit 98937e7 (November 25, 2026): build object filters from operator and value only, src/lib/params.ts with tests",
      "url": "https://github.com/umami-software/umami/commit/98937e71bd776a44c58190051a58cdac811a5daf",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-11-25T00:00:00.000Z"
    },
    {
      "id": "umami-vulnerable-code-params-prisma",
      "label": "Umami source at commit d3c62a8 named in the CVE record references: src/lib/params.ts filter builder and src/lib/prisma.ts getFilterQuery concatenation",
      "url": "https://github.com/umami-software/umami/blob/d3c62a805beda8643cb468924dda38617fb4c286/src/lib/params.ts",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-11-29T00:00:00.000Z"
    },
    {
      "id": "vulncheck-umami-sql-injection",
      "label": "VulnCheck advisory: Umami through 3.5.0 SQL injection via Reports API filter prefix",
      "url": "https://www.vulncheck.com/advisories/umami-through-3.5.0-sql-injection-via-reports-api-filter-prefix",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-11-29T00:00:00.000Z"
    },
    {
      "id": "cisa-kev",
      "label": "CISA Known Exploited Vulnerabilities catalog, version 2026.11.27 (CVE absent)",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "sourceType": "government",
      "observedAt": "2026-11-27T00:00:00.000Z"
    }
  ],
  "artifacts": [
    {
      "id": "umami-through-3-5-0",
      "artifactClass": "package",
      "ecosystem": "generic",
      "name": "Umami web analytics (self-hosted), Reports API object filters",
      "version": "All versions through 3.5.0; fix committed November 25, 2026, no fixed release yet",
      "defanged": false
    }
  ],
  "indicators": [],
  "timeline": [
    {
      "id": "v350-released",
      "occurredAt": "2026-11-12T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "Umami v3.5.0 was published on November 12, 2026; it is the newest release on the list read in this run and the top of the affected range.",
      "sourceIds": [
        "nvd-cve-2026-138445"
      ]
    },
    {
      "id": "fix-committed",
      "occurredAt": "2026-11-25T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "Fix commit 98937e7 was committed on November 25, 2026: build object filters from operator and value only, with tests that a client-supplied prefix and column are ignored.",
      "sourceIds": [
        "umami-fix-commit-98937e7"
      ]
    },
    {
      "id": "cve-published",
      "occurredAt": "2026-11-29T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "The CVE record for CVE-2026-138445 was published on November 29, 2026, with the VulnCheck CVSS 3.1 score of 9.9, the CVSS 4.0 score of 9.4 and CWE-89.",
      "sourceIds": [
        "nvd-cve-2026-138445",
        "vulncheck-umami-sql-injection"
      ]
    },
    {
      "id": "kev-absence-read",
      "occurredAt": "2026-11-30T00:00:00.000Z",
      "eventType": "first_observed",
      "summary": "Read in this run on November 30, 2026: the CISA KEV catalog at version 2026.11.27 holds 1,808 entries and no entry for CVE-2026-138445.",
      "sourceIds": [
        "cisa-kev"
      ]
    }
  ],
  "coverage": [
    {
      "assertionId": "guard-evidence-pack",
      "relationship": "provides_evidence",
      "limitation": "The campaign rests on the NVD record for CVE-2026-138445 (VulnCheck as author), the VulnCheck advisory page, the Umami source at the commit the record names (params.ts and prisma.ts) and the fix commit 98937e7 read as a patch, the Umami release list, and the CISA KEV feed, all read firsthand in this run. The fix-release state is stated as read on November 30, 2026. HOL did not reproduce the flaw."
    }
  ],
  "policies": [
    {
      "policyId": "apply-umami-fix-commit-98937e7",
      "purpose": "Move every self-hosted Umami instance to a build carrying fix commit 98937e7 (or a later release that includes it), and withdraw share links until then, because Umami through 3.5.0 concatenates a client-supplied filter prefix unquoted into Postgres WHERE clauses in the Reports API, letting share token holders and authenticated users run SQL against the instance database and read or modify data beyond the requested website (CVE-2026-138445)",
      "status": "available",
      "limitation": "A fixed release may ship after this page; the policy names the commit as the test because no release carries the fix as read on November 30, 2026."
    }
  ],
  "limitations": [
    "No fixed Umami release exists as read on November 30, 2026: the newest release is v3.5.0 (November 12, 2026) and the fix is a main-branch commit (98937e7, November 25, 2026), so the page's remedy is the commit, a main-branch build, or the interim controls.",
    "The record names share token holders and authenticated users as callers; HOL did not test a share token against a live instance.",
    "No exploitation in the wild is reported by any source read for this page, and the CVE is absent from the CISA KEV catalog version read in this run.",
    "The detection guidance follows the request shape; no indicator set is published for this flaw and Umami documents no built-in audit view for report requests."
  ],
  "correctionHref": "/guard/security/campaigns/cve-2026-138445-umami-sql-injection-reports-api/corrections"
}
