Trigger.dev Self-Hosted Deployment: Default Secrets allow Unauthenticated Infrastructure Compromise
Self-hosted trigger.dev version 4 instances deployed with the default Docker Compose configuration using hardcoded secrets in the provided .env.example file are vulnerable to unauthenticated attacks. The MAGIC_LINK_SECRET allows attackers to forge authentication tokens and gain access as any user without email verification. This leads to automatic user creation and full access to infrastructure services including the database, Redis, and ClickHouse, all of which use default or no authentication. The vulnerability enables complete infrastructure compromise, including tenant data, API keys, encrypted secrets, and job queue manipulation.
AI Analysis
Technical Summary
The trigger.dev self-hosted deployment using version 4 and the default Docker Compose setup with secrets from hosting/docker/.env.example is vulnerable due to hardcoded cryptographic secrets. The MAGIC_LINK_SECRET is used by [email protected] for AES encryption of authentication tokens. Since the secret is known and session validation is disabled by default, attackers can forge magic link tokens to authenticate as any email address without email delivery. User accounts are auto-created when WHITELISTED_EMAILS is unset. The infrastructure services (Postgres, Redis, ClickHouse) use default or no authentication and are accessible from runner containers on the infrastructure network. This chain of issues results in complete infrastructure compromise, including data access, secret decryption, and potential manipulation of job queues and Docker images.
Potential Impact
An attacker can gain unauthenticated access to the trigger.dev self-hosted instance by forging magic link tokens, leading to automatic user creation and session hijacking. This access extends to infrastructure services such as Postgres, Redis, and ClickHouse, which have default or no authentication, allowing full data access and manipulation. The attacker can decrypt encrypted secrets using the known ENCRYPTION_KEY, access all tenant data and API keys, and potentially push backdoored Docker images and manipulate job queues. The overall impact is complete infrastructure compromise.
Mitigation Recommendations
A patch is available for this vulnerability. Users should update trigger.dev to version 4.5.6 or later where this issue is fixed. Additionally, avoid deploying with default secrets from hosting/docker/.env.example. Replace all hardcoded secrets with unique, strong secrets and configure authentication for infrastructure services such as Redis and Postgres. Restrict network access to infrastructure containers and enable session validation features if applicable.
Trigger.dev Self-Hosted Deployment: Default Secrets allow Unauthenticated Infrastructure Compromise
Description
Self-hosted trigger.dev version 4 instances deployed with the default Docker Compose configuration using hardcoded secrets in the provided .env.example file are vulnerable to unauthenticated attacks. The MAGIC_LINK_SECRET allows attackers to forge authentication tokens and gain access as any user without email verification. This leads to automatic user creation and full access to infrastructure services including the database, Redis, and ClickHouse, all of which use default or no authentication. The vulnerability enables complete infrastructure compromise, including tenant data, API keys, encrypted secrets, and job queue manipulation.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The trigger.dev self-hosted deployment using version 4 and the default Docker Compose setup with secrets from hosting/docker/.env.example is vulnerable due to hardcoded cryptographic secrets. The MAGIC_LINK_SECRET is used by [email protected] for AES encryption of authentication tokens. Since the secret is known and session validation is disabled by default, attackers can forge magic link tokens to authenticate as any email address without email delivery. User accounts are auto-created when WHITELISTED_EMAILS is unset. The infrastructure services (Postgres, Redis, ClickHouse) use default or no authentication and are accessible from runner containers on the infrastructure network. This chain of issues results in complete infrastructure compromise, including data access, secret decryption, and potential manipulation of job queues and Docker images.
Potential Impact
An attacker can gain unauthenticated access to the trigger.dev self-hosted instance by forging magic link tokens, leading to automatic user creation and session hijacking. This access extends to infrastructure services such as Postgres, Redis, and ClickHouse, which have default or no authentication, allowing full data access and manipulation. The attacker can decrypt encrypted secrets using the known ENCRYPTION_KEY, access all tenant data and API keys, and potentially push backdoored Docker images and manipulate job queues. The overall impact is complete infrastructure compromise.
Mitigation Recommendations
A patch is available for this vulnerability. Users should update trigger.dev to version 4.5.6 or later where this issue is fixed. Additionally, avoid deploying with default secrets from hosting/docker/.env.example. Replace all hardcoded secrets with unique, strong secrets and configure authentication for infrastructure services such as Redis and Postgres. Restrict network access to infrastructure containers and enable session validation features if applicable.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pqxw-g93w-hj9x
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6ac139b2a43b0b3b89d69af7
Added to database: 10/03/2026, 17:21:54 UTC
Last enriched: 10/03/2026, 17:40:43 UTC
Last updated: 10/04/2026, 02:51:13 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.