Skip to content

Missing checks on /resources/taskruns/:runParam/debug leaks secret environment API keys

High
carderne published GHSA-c9gp-jqv9-cvxr Nov 23, 2026

Package

npm @trigger.dev/webapp (npm)

Affected versions

<= 4.8.9

Patched versions

>= 4.8.10

Description

Summary

The run-debug endpoint enforced organization membership but did not enforce the platform-admin restriction used by the dashboard. An authenticated member who knew the ID of a run in their organization could obtain the run’s plaintext root environment API key and, when present, its parent environment’s key. This bypassed dashboard RBAC and could expose another member’s personal Development key.

The disclosed credentials grant API access to the affected environment, not platform-admin access. No cross-tenant access.

Root cause

The run-debug loader verified that the signed-in user belonged to the run’s organization, but did not enforce the platform-admin restriction used by the dashboard. Hiding Debug run in the UI did not restrict access to the server endpoint.

The run-ops refactor replaced an explicit selection of non-secret environment fields with an internal environment resolver. The loader returned the resolver’s full result in both response branches, including the root environment API key and, where present, the parent environment’s key. The debug dialog did not use the environment object.

Impact

An authenticated organization member who knew the ID of a run in their organization could obtain a root API key they were not authorized to read. This could bypass environment-level RBAC or expose another member’s personal Development key. The disclosed key grants broad read and write access through the affected environment’s API. It does not grant platform-admin access or access to unrelated organizations.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

CVE ID

No known CVE

Weaknesses

Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. Learn more on MITRE.

Improper Privilege Management

The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. Learn more on MITRE.

Missing Authorization

The product does not perform an authorization check when an actor attempts to access a resource or perform an action. Learn more on MITRE.

Credits