Skip to content

Supervisor workload API lacks cross-tenant authentication

High
carderne published GHSA-jc26-22qp-cgqj Sep 14, 2026

Package

npm trigger.dev (npm)

Affected versions

<= 4.6.0

Patched versions

>= 4.6.0

Description

Summary

The supervisor workload server accepts critical run-lifecycle requests without cryptographically authenticating the caller or verifying ownership of the targeted run. A workload with network access and knowledge of a valid run/snapshot pair can target runs belonging to another deployment.

Vulnerability Details

File: apps/supervisor/src/workloadServer/index.ts

The HTTP server created at lines 157-470 exposes these endpoints with NO authentication:

  • POST /api/v1/workload-actions/runs/:runId/snapshots/:snapshotId/attempts/start
  • POST /api/v1/workload-actions/runs/:runId/snapshots/:snapshotId/attempts/complete
  • POST /api/v1/workload-actions/runs/:runId/snapshots/:snapshotId/heartbeat
  • GET /api/v1/workload-actions/runs/:runId/snapshots/:snapshotId/suspend
  • GET /api/v1/workload-actions/runs/:runId/snapshots/:snapshotId/continue

The supervisor forwards these requests upstream using its privileged worker credentials, creating a confused-deputy path. In particular, attempts/start can return resolved environment variables and a newly issued run JWT.

The /workload Socket.IO namespace checks only for caller-supplied identity headers and allows callers to bind known run IDs without verifying that the run belongs to the claimed deployment.

Steps to Reproduce

# Requires network access and a known current run/snapshot pair.
curl -X POST \
     http://supervisor:8020/api/v1/workload-actions/runs/run_XXXX/snapshots/snap_XXXX/attempts/start \
     -H "Content-Type: application/json" \
     -H "x-trigger-workload-runner-id: attacker" \
     -d '{"isWarmStart":false}'

Impact

Targeted cross-deployment and potentially cross-tenant run manipulation. An attacker with network access and a valid run/snapshot pair may start or complete another run, interfere with its lifecycle, or obtain its resolved environment variables and run JWT. Run and snapshot IDs have high entropy, and the workload API does not provide a working enumeration primitive.

Resolution

The managed service now authenticates workloads using signed deployment-scoped tokens and scopes sensitive worker actions to the verified environment. Requests targeting runs in another environment are rejected. The obsolete deployment-scoped dequeue proxy has also been removed.

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
Adjacent
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Changed
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:A/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L

CVE ID

No known CVE

Weaknesses

Missing Authentication for Critical Function

The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. Learn more on MITRE.

Credits