Vulnerabilities

Vulnerability · CVE-2026-114081

Trigger.dev: Cross-tenant SQL injection in the TSQL query compiler (POST /api/v1/query) via unsanitized window-function name

Published Oct 2, 2026 · catalog updated Oct 21, 2026 · Trigger.dev: Cross-tenant SQL injection

Open the advisory

Exploitation likelihood is not on this record for CVE-2026-114081. A missing EPSS score is not a low risk. Compare Trigger.dev: Cross-tenant SQL injection with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Trigger.dev: Cross-tenant SQL injection).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
High7.7
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Awaiting synchronization with FIRST
Remediation
Advisory link
Affected products
npm trigger.dev

### Summary A cross-tenant SQL injection in the TSQL query compiler lets **any authenticated trigger.dev customer read every other tenant's analytics data**. The customer-facing query endpoint accepts a TSQL/TRQL query that is compiled to ClickHouse SQL by . The compiler parameterizes or escapes all user input and injects a per-tenant guard — **except the window-function name**, which is concatenated into the SQL string with no allowlist and no escaping. By smuggling a backtick-quoted identifier into that position, an attacker injects a raw subquery (e.g. ) that sits **outside** the tenant guard, exfiltrating another organization's rows. Verified end-to-end against the real compiler and a live ClickHouse. ### Details **Vulnerable sink** — , : is emitted directly into the SQL with **no allowlist check and no identifier escaping**. This is the only place in the compiler where an attacker-influenced identifier reaches the output unguarded: - The normal function-call path ( ) throws for any name outside the hardcoded / allowlists — **this gate is absent on the window-function path**. - String constants are bound as ClickHouse (parameterized). - Other identifiers go through . - Table functions ( ) are rejected. A **backtick-quoted identifier** is accepted by the lexer and **unescaped** into by (the backticks are stripped and the inner text is unescaped), so arbitrary characters — spaces, , , , , a full subquery — become the "function name" and are printed verbatim. **How it bypasses tenant isolation.** Multi-tenancy is enforced only by , which is attached to the **outer** table's ( / / taken from the caller's API key). An injected **subquery** has no such guard, so it reads across all tenants. **Reachability** — : - is a raw . - Auth is any environment-scoped credential — a private API key or a public JWT — i.e. **any signed-up customer**. - The route's authorization ( + ) only authorizes the **outer table** the caller is legitimately allowed to read. The injection rides

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • npm trigger.dev0 → 4.5.6

How to fix CVE-2026-114081

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for CVE-2026-114081. A missing EPSS score is not a low risk. Compare Trigger.dev: Cross-tenant SQL injection with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with 0 → 4.5.6. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-639: Authorization Bypass Through User-Controlled Key; CWE-89: SQL Injection. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 2, 2026 · GitHub Advisory Database

    Detected

    ### Summary A cross-tenant SQL injection in the TSQL query compiler lets **any authenticated trigger.dev customer read every other tenant's analytics data**. The customer-facing query endpoint accepts a TSQL/TRQL query that is compiled to ClickHouse SQL by . The compiler parameterizes or escapes all user input and injects a per-tenant guard — **except the window-function name**, which is concatena

  2. Oct 21, 2026 · GitHub Advisory Database

    Fix available

    trigger.dev fixed in 4.5.6

  3. Oct 21, 2026 · GitHub Advisory Database

    Fix available

    trigger.dev fixed in 4.5.6

  4. Oct 21, 2026 · GitHub Advisory Database

    Updated

    ### Summary A cross-tenant SQL injection in the TSQL query compiler lets **any authenticated trigger.dev customer read every other tenant's analytics data**. The customer-facing query endpoint accepts a TSQL/TRQL query that is compiled to ClickHouse SQL by . The compiler parameterizes or escapes all user input and injects a per-tenant guard — **except the window-function name**, which is concatena

Sources

References

Freshness

Last verified in this catalog Oct 21, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.