/

CVE-2026-114069

Severity:

HIGH RISK

(8.1)

Improper Authorization (CWE-269) in Trigger.dev Envvars

CVE-2026-114069

Deferred

Vulnerability type

Category:

Improper Authorization

CWE:

CWE-269

Impact:

Credential Disclosure and Privilege Escalation

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Trigger.dev before 4.6.0 improperly authorizes access to the project environment variables endpoint. A holder of a restricted read:envvars key may receive the root TRIGGER_SECRET_KEY and plaintext secrets, which can enable task execution and creation of administrative public JWTs.

Trigger.dev before 4.6.0 improperly authorizes access to the project environment variables endpoint. A holder of a restricted read:envvars key may receive the root TRIGGER_SECRET_KEY and plaintext secrets, which can enable task execution and creation of administrative public JWTs.

Affected context

The vulnerability occurs in Trigger.dev deployments where the

GET /api/v1/projects/:projectRef/envvars endpoint exposes environment

values for staging, production, or preview environments. The issue is

relevant when a caller possesses a restricted environment-variable read

credential that should not grant access to root secrets or administrative

capabilities.

The vulnerability occurs in Trigger.dev deployments where the

GET /api/v1/projects/:projectRef/envvars endpoint exposes environment

values for staging, production, or preview environments. The issue is

relevant when a caller possesses a restricted environment-variable read

credential that should not grant access to root secrets or administrative

capabilities.

Exploit preconditions

  • Attack surface: The authenticated project environment-variable API
  • Required access: A valid restricted key with read:envvars access
  • Trigger point: A request to the project environment variables endpoint
  • Why exploitation is possible: Authorization checks do not sufficiently

separate read access to environment variables from access to the root API

key and other sensitive secret values

  • Attack surface: The authenticated project environment-variable API
  • Required access: A valid restricted key with read:envvars access
  • Trigger point: A request to the project environment variables endpoint
  • Why exploitation is possible: Authorization checks do not sufficiently

separate read access to environment variables from access to the root API

key and other sensitive secret values

Why this happens

The endpoint applies insufficient authorization boundaries to sensitive

environment data. A credential intended for restricted read access can

receive values with substantially greater privilege, including the

environment's root API key. This maps to CWE-269: Improper Privilege Management, because the system fails to enforce least privilege when

determining which secrets an authenticated caller may retrieve.

The endpoint applies insufficient authorization boundaries to sensitive

environment data. A credential intended for restricted read access can

receive values with substantially greater privilege, including the

environment's root API key. This maps to CWE-269: Improper Privilege Management, because the system fails to enforce least privilege when

determining which secrets an authenticated caller may retrieve.

Potential impact

  • Attackers may disclose plaintext application secrets
  • Attackers may obtain the root TRIGGER_SECRET_KEY
  • Attackers could trigger protected tasks or workflows
  • Attackers may mint administrative public JWTs
  • Compromised credentials may enable unauthorized project or environment access
  • Attackers may disclose plaintext application secrets
  • Attackers may obtain the root TRIGGER_SECRET_KEY
  • Attackers could trigger protected tasks or workflows
  • Attackers may mint administrative public JWTs
  • Compromised credentials may enable unauthorized project or environment access

General mitigation guidance

Mitigation generally focuses on enforcing least privilege throughout

environment-variable retrieval and secret management.

Defensive patterns include:

  • Excluding root keys, signing secrets, and administrative credentials from

ordinary environment-variable responses

  • Applying object-level and field-level authorization before returning each

secret

  • Using separate credentials with narrowly scoped capabilities
  • Returning metadata or redacted values instead of plaintext secrets where

full disclosure is unnecessary

  • Protecting token-minting and task-triggering operations with independent

authorization checks

  • Limiting the privileges and lifetime of service credentials
  • Rotating potentially exposed secrets and reviewing dependent trust

relationships

Mitigation generally focuses on enforcing least privilege throughout

environment-variable retrieval and secret management.

Defensive patterns include:

  • Excluding root keys, signing secrets, and administrative credentials from

ordinary environment-variable responses

  • Applying object-level and field-level authorization before returning each

secret

  • Using separate credentials with narrowly scoped capabilities
  • Returning metadata or redacted values instead of plaintext secrets where

full disclosure is unnecessary

  • Protecting token-minting and task-triggering operations with independent

authorization checks

  • Limiting the privileges and lifetime of service credentials
  • Rotating potentially exposed secrets and reviewing dependent trust

relationships

How teams detect issues like this

Detection can combine API authorization testing with code and policy review.

  • Review endpoint handlers for missing project, environment, and field-level

authorization checks

  • Use static analysis to identify responses that serialize complete secret

stores or privileged keys

  • Add negative authorization tests confirming restricted keys cannot retrieve

root credentials or mint administrative tokens

  • Monitor audit logs for environment-variable reads followed by task

triggering, token creation, or unusual project access

  • Enforce API policies that classify root keys and signing secrets as

non-readable through standard configuration endpoints

  • Automated security review tools may help flag privilege-boundary violations

Detection can combine API authorization testing with code and policy review.

  • Review endpoint handlers for missing project, environment, and field-level

authorization checks

  • Use static analysis to identify responses that serialize complete secret

stores or privileged keys

  • Add negative authorization tests confirming restricted keys cannot retrieve

root credentials or mint administrative tokens

  • Monitor audit logs for environment-variable reads followed by task

triggering, token creation, or unusual project access

  • Enforce API policies that classify root keys and signing secrets as

non-readable through standard configuration endpoints

  • Automated security review tools may help flag privilege-boundary violations

Sources

SourceLink
github.comgithub.com/triggerdotdev/trigger.dev/security/advisories/GHSA-4gjx-f5hj-678x
vulncheck.comvulncheck.com/advisories/trigger-dev-before-4.6.0-root-secret-disclosure-via-envvars-api-endpoint

Frequently asked

questions

Exploitation generally requires a valid restricted key with permission to read

environment variables for an affected project. It is not necessarily

unauthenticated, but the exposed credential can provide capabilities beyond

its intended scope.

The response can include the root TRIGGER_SECRET_KEY and plaintext secrets.

These values may support task execution and the creation of administrative

public JWTs.

Enforce field-level authorization and ensure that root keys, signing secrets,

and other administrative credentials are never returned to restricted

environment-variable readers.

Define explicit privilege boundaries for every API response, test denied

access to sensitive fields, use narrowly scoped credentials, and monitor

secret access for suspicious follow-on activity.

Exploitation generally requires a valid restricted key with permission to read

environment variables for an affected project. It is not necessarily

unauthenticated, but the exposed credential can provide capabilities beyond

its intended scope.

The response can include the root TRIGGER_SECRET_KEY and plaintext secrets.

These values may support task execution and the creation of administrative

public JWTs.

Enforce field-level authorization and ensure that root keys, signing secrets,

and other administrative credentials are never returned to restricted

environment-variable readers.

Define explicit privilege boundaries for every API response, test denied

access to sensitive fields, use narrowly scoped credentials, and monitor

secret access for suspicious follow-on activity.

Find out what's already
exploitable in your codebase.