Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114069 Overview
CVE-2026-114069 is an improper authorization vulnerability in Trigger.dev versions before 4.6.0. The flaw exists in the GET /api/v1/projects/:projectRef/envvars endpoint, which returns the environment's root API key as TRIGGER_SECRET_KEY for staging, production, and preview environments. An attacker holding a restricted read:envvars key can obtain the root secret along with plaintext secrets stored in environment variables. The disclosed root key allows the attacker to trigger tasks and mint admin public JSON Web Tokens (JWTs), escalating privileges well beyond the intended scope of the restricted token.
Critical Impact
A low-privilege API token can be escalated to full administrative control over the Trigger.dev project, exposing all environment secrets and enabling arbitrary task execution.
Affected Products
- Trigger.dev versions prior to 4.6.0
- Self-hosted and cloud deployments exposing the /api/v1/projects/:projectRef/envvars endpoint
- Projects issuing restricted API keys with the read:envvars scope
Discovery Timeline
- 2026-10-21 - CVE-2026-114069 published to the National Vulnerability Database (NVD)
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-114069
Vulnerability Analysis
The vulnerability is categorized under [CWE-269: Improper Privilege Management]. Trigger.dev issues scoped API keys so operators can grant least-privilege access to automation agents and integrations. The read:envvars scope is intended to allow a caller to enumerate user-defined environment variables for a project. The affected endpoint, however, returns the full set of environment variables including the automatically injected TRIGGER_SECRET_KEY.
TRIGGER_SECRET_KEY is the root API key for the project environment. Possessing this value grants capabilities equivalent to an administrator, including the ability to trigger tasks across staging, production, and preview environments. The caller can also mint admin-level public JWTs, which can be reused against other platform surfaces.
Root Cause
The root cause is a missing authorization filter on the response payload. The envvars endpoint enforces the read:envvars scope at the request layer but does not strip privileged, system-injected variables before serialization. The implicit trust boundary between "user secrets" and "platform secrets" is not enforced in the response construction path.
Attack Vector
An attacker who obtains or is legitimately issued a restricted read:envvars key sends an authenticated GET request to /api/v1/projects/:projectRef/envvars. The response contains TRIGGER_SECRET_KEY and all plaintext secrets for the targeted environment. The attacker then uses TRIGGER_SECRET_KEY to call administrative endpoints, trigger arbitrary tasks, and issue admin public JWTs. No user interaction is required and the attack is executed entirely over the network.
Technical details and reproduction notes are available in the GitHub Security Advisory GHSA-4gjx-f5hj-678x and the VulnCheck Advisory for Trigger.dev.
Detection Methods for CVE-2026-114069
Indicators of Compromise
- Requests to GET /api/v1/projects/:projectRef/envvars originating from tokens with only the read:envvars scope
- Subsequent administrative API calls or task triggers authenticated with TRIGGER_SECRET_KEY from IP addresses previously associated with restricted keys
- Unexpected issuance of public JWTs or task runs that do not correlate with scheduled workflows
Detection Strategies
- Audit Trigger.dev access logs for calls to the envvars endpoint and correlate caller token scope with the response size and content
- Alert on any use of TRIGGER_SECRET_KEY from a source that previously authenticated using a restricted API key
- Baseline the volume and timing of task-trigger API calls per environment and flag deviations
Monitoring Recommendations
- Forward Trigger.dev application and reverse-proxy logs to a centralized analytics platform for scope-to-response correlation
- Monitor JWT issuance events and compare issuer identities against the expected administrator roster
- Review all active API keys for the read:envvars scope and track their usage patterns continuously
How to Mitigate CVE-2026-114069
Immediate Actions Required
- Upgrade Trigger.dev to version 4.6.0 or later on all self-hosted and managed deployments
- Rotate TRIGGER_SECRET_KEY and every plaintext secret stored as an environment variable in staging, production, and preview environments
- Revoke all API keys that were ever issued with the read:envvars scope and reissue with narrower permissions
- Invalidate any admin public JWTs issued during the exposure window
Patch Information
Trigger.dev addressed the issue in version 4.6.0. The fix removes privileged, system-injected variables such as TRIGGER_SECRET_KEY from the response of the envvars endpoint for callers scoped to read:envvars. Refer to the GitHub Security Advisory GHSA-4gjx-f5hj-678x for the full remediation notes.
Workarounds
- Restrict network access to the Trigger.dev API using an authenticated reverse proxy or allowlisted IP ranges until the upgrade is complete
- Avoid issuing API keys with the read:envvars scope and migrate automation to use scopes that do not expose environment variables
- Store sensitive values in an external secrets manager and reference them at runtime rather than embedding plaintext secrets in project environment variables
# Configuration example: upgrade and rotate secrets
npm install trigger.dev@^4.6.0
# After upgrade, rotate the project root key via the Trigger.dev dashboard
# Then revoke any API keys previously granted the read:envvars scope
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

