GHSA-xxv7-2vv3-h682: Trigger.dev Server-side Request Forgery Vulnerability

HIGH
CVSS 7.7
CWE-918
Published
Advisory Summary

GHSA-xxv7-2vv3-h682 is a HIGH (CVSS 7.7) server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Trigger.dev libraries in the npm ecosystem. The issue involves server-side request forgery via unvalidated webhook alert-channel url. Remediation is available by upgrading affected packages to version 4.5.2.

GHSA-xxv7-2vv3-h682 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xxv7-2vv3-h682
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Trigger.dev
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-xxv7-2vv3-h682

To remediate this vulnerability, upgrade all affected Trigger.dev dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

trigger.dev fixed: 4.5.2
npm install trigger.dev@4.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls trigger.dev

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-xxv7-2vv3-h682, inspect your project dependencies using npm:

npm ls trigger.dev

Analyze the terminal output to locate any version of Trigger.dev in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.2), your application is affected.

Note: The npm ls trigger.dev command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Trigger.dev, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A project member can create a webhook alert channel whose delivery URL points at an internal address, and trigger.dev's control plane will send the alert there with no SSRF protection. The webhook URL is stored as an unvalidated string and is fetched directly from the webapp server, so a low-privilege authenticated user can make the server issue POST requests to internal-only services and cloud metadata endpoints (for example http://169.254.169.254/). No private-IP, scheme, or redirect filtering exists anywhere in the webapp. ### Details The delivery sink performs a raw fetch to the stored URL, apps/webapp/app/v3/services/alerts/deliverAlert.server.ts:949 (#deliverWebhook): ```js const response = await fetch(webhook.url, { method: "POST", headers: { "content-type": "application/json", "x-trigger-signature-hmacsha256": signatureHex, }, body: rawPayload, signal: AbortSignal.timeout(5000), }); ``` The same pattern is in apps/webapp/app/v3/services/alerts/deliverErrorGroupAlert.server.ts:245. The URL is never validated. The stored shape is a bare string, apps/webapp/app/models/projectAlert.server.ts:6: ```js url: z.string(), // not even .url() ``` The public API that creates alert channels accepts it with no constraint, apps/webapp/app/presenters/v3/ApiAlertChannelPresenter.server.ts:35: ```js url: z.string().optional(), ``` and stores it (line 139-142). The dashboard create route applies only `z.string().url()`, which still accepts http://169.254.169.254/... and http://127.0.0.1/.... A repository-wide search for any SSRF guard (private-IP/link-local/loopback/metadata blocklist, DNS-rebinding re-check, request-filtering agent) in apps/webapp returns nothing, so no protection exists at any layer. Creating the alert channel only requires organization membership (the API path resolves the project via findProjectByRef, which requires `organization.members.some.userId`); no admin role is needed. ### PoC As any member of an organization (using a personal access token or API key for a project they legitimately belong to): ```http POST /api/v1/projects/<projectRef>/alertChannels Authorization: Bearer <token> Content-Type: application/json { "name": "x", "alertTypes": ["task_run_failure"], "channel": "webhook", "channelData": { "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/" } } ``` Then cause a task run failure in the attacker's own (legitimately owned) environment. DeliverAlert/DeliverErrorGroupAlert fires and the webapp issues a POST to the internal URL, with a valid HMAC signature computed from the channel secret. Live-validated: a local HTTP server was stood up on 127.0.0.1 to stand in for an internal/metadata endpoint, and the verbatim #deliverWebhook sink (HMAC-sign then raw fetch(webhook.url, POST, body) with no SSRF guard) was executed against it with webhook.url set to that internal address. Captured (what the internal server received): ``` [001 SSRF webhook alert] internal server received: {"url":"/latest/meta-data/","sigHeader":"a1d8dce41bda6c80df5a179cdc9f25320729b991ec3eb5f07df7ab9531149f65","body":"{\"alert\":\"task_run_failure\"}"} SSRF: CONFIRMED (control-plane POSTed signed payload to internal/metadata URL, no guard) ``` The control plane delivered the signed payload to the internal URL. That a low-privilege org member can create the alert channel (findProjectByRef requires only org membership) is verified at source. This is a blind/semi-blind SSRF: the response body is not returned to the attacker, but the request reaches the internal service (its POST body is delivered), and status, latency, and error differences are observable through the alert delivery logs/state. ### Impact A low-privilege authenticated organization member can use the trigger.dev control plane as an SSRF proxy into the internal network and the cloud metadata service. On cloud deployments this can reach the instance metadata endpoint (IMDS) and internal-only admin services. Because the request is server-originated and validly signed, it is indistinguishable from a legitimate trigger.dev callback to the receiving service. ### Remediation Validate the webhook URL on input (require https, reject hostnames that resolve to private, loopback, link-local, or metadata ranges) in ProjectAlertWebhookProperties and the API alert-channel schema, and enforce the same check at the fetch sinks in deliverAlert.server.ts and deliverErrorGroupAlert.server.ts, including re-checking after redirects (resolve the host and pin the connection, or use an SSRF-safe fetch agent).

GHSA-xxv7-2vv3-h682 Affected Trigger.dev Versions

1 component(s)
Fixed Versions:
4.5.2
Product / Package Ecosystem Affected Versions Fixed Version
trigger.dev
npm
< 4.5.2
4.5.2

References

Frequently Asked Questions

What is GHSA-xxv7-2vv3-h682?
GHSA-xxv7-2vv3-h682 is a security vulnerability in Trigger.dev involving Server-side request forgery via unvalidated webhook alert-channel URL under CWE-918: Server-Side Request Forgery (SSRF).
Which Trigger.dev versions are affected?
Affected versions include releases prior to 4.5.2 across affected packages: trigger.dev.
What version fixes GHSA-xxv7-2vv3-h682?
Upgrading to 4.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is trigger.dev affected?
Yes, trigger.dev is affected in releases prior to 4.5.2. Upgrade your dependency to 4.5.2 or later.
What is the CVSS score of GHSA-xxv7-2vv3-h682?
GHSA-xxv7-2vv3-h682 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with GHSA-xxv7-2vv3-h682?
GHSA-xxv7-2vv3-h682 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for GHSA-xxv7-2vv3-h682?
Run the dependency tree command: 'npm ls trigger.dev'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xxv7-2vv3-h682",
  "modified" : "2026-10-02T19:31:33Z",
  "published" : "2026-10-02T19:31:33Z",
  "aliases" : [ ],
  "summary" : "Trigger.dev: Server-side request forgery via unvalidated webhook alert-channel URL",
  "details" : "### Summary\nA project member can create a webhook alert channel whose delivery URL points at an internal address, and trigger.dev's control plane will send the alert there with no SSRF protection. The webhook URL is stored as an unvalidated string and is fetched directly from the webapp server, so a low-privilege authenticated user can make the server issue POST requests to internal-only services and cloud metadata endpoints (for example http://169.254.169.254/). No private-IP, scheme, or redirect filtering exists anywhere in the webapp.\n\n### Details\nThe delivery sink performs a raw fetch to the stored URL, apps/webapp/app/v3/services/alerts/deliverAlert.server.ts:949 (#deliverWebhook):\n```js\nconst response = await fetch(webhook.url, {\n  method: \"POST\",\n  headers: {\n    \"content-type\": \"application/json\",\n    \"x-trigger-signature-hmacsha256\": signatureHex,\n  },\n  body: rawPayload,\n  signal: AbortSignal.timeout(5000),\n});\n```\nThe same pattern is in apps/webapp/app/v3/services/alerts/deliverErrorGroupAlert.server.ts:245.\n\nThe URL is never validated. The stored shape is a bare string, apps/webapp/app/models/projectAlert.server.ts:6:\n```js\nurl: z.string(),     // not even .url()\n```\nThe public API that creates alert channels accepts it with no constraint, apps/webapp/app/presenters/v3/ApiAlertChannelPresenter.server.ts:35:\n```js\nurl: z.string().optional(),\n```\nand stores it (line 139-142). The dashboard create route applies only `z.string().url()`, which still accepts http://169.254.169.254/... and http://127.0.0.1/.... A repository-wide search for any SSRF guard (private-IP/link-local/loopback/metadata blocklist, DNS-rebinding re-check, request-filtering agent) in apps/webapp returns nothing, so no protection exists at any layer.\n\nCreating the alert channel only requires organization membership (the API path resolves the project via findProjectByRef, which requires `organization.members.some.userId`); no admin role is needed.\n\n### PoC\nAs any member of an organization (using a personal access token or API key for a project they legitimately belong to):\n```http\nPOST /api/v1/projects/<projectRef>/alertChannels\nAuthorization: Bearer <token>\nContent-Type: application/json\n\n{\n  \"name\": \"x\",\n  \"alertTypes\": [\"task_run_failure\"],\n  \"channel\": \"webhook\",\n  \"channelData\": { \"url\": \"http://169.254.169.254/latest/meta-data/iam/security-credentials/\" }\n}\n```\nThen cause a task run failure in the attacker's own (legitimately owned) environment. DeliverAlert/DeliverErrorGroupAlert fires and the webapp issues a POST to the internal URL, with a valid HMAC signature computed from the channel secret.\n\nLive-validated: a local HTTP server was stood up on 127.0.0.1 to stand in for an internal/metadata endpoint, and the verbatim #deliverWebhook sink (HMAC-sign then raw fetch(webhook.url, POST, body) with no SSRF guard) was executed against it with webhook.url set to that internal address. Captured (what the internal server received):\n```\n[001 SSRF webhook alert] internal server received: {\"url\":\"/latest/meta-data/\",\"sigHeader\":\"a1d8dce41bda6c80df5a179cdc9f25320729b991ec3eb5f07df7ab9531149f65\",\"body\":\"{\\\"alert\\\":\\\"task_run_failure\\\"}\"}\nSSRF: CONFIRMED (control-plane POSTed signed payload to internal/metadata URL, no guard)\n```\nThe control plane delivered the signed payload to the internal URL. That a low-privilege org member can create the alert channel (findProjectByRef requires only org membership) is verified at source.\n\nThis is a blind/semi-blind SSRF: the response body is not returned to the attacker, but the request reaches the internal service (its POST body is delivered), and status, latency, and error differences are observable through the alert delivery logs/state.\n\n### Impact\nA low-privilege authenticated organization member can use the trigger.dev control plane as an SSRF proxy into the internal network and the cloud metadata service. On cloud deployments this can reach the instance metadata endpoint (IMDS) and internal-only admin services. Because the request is server-originated and validly signed, it is indistinguishable from a legitimate trigger.dev callback to the receiving service.\n\n### Remediation\nValidate the webhook URL on input (require https, reject hostnames that resolve to private, loopback, link-local, or metadata ranges) in ProjectAlertWebhookProperties and the API alert-channel schema, and enforce the same check at the fetch sinks in deliverAlert.server.ts and deliverErrorGroupAlert.server.ts, including re-checking after redirects (resolve the host and pin the connection, or use an SSRF-safe fetch agent).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "trigger.dev"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-xxv7-2vv3-h682"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/pull/4199"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/triggerdotdev/trigger.dev"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/releases/tag/v4.5.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-02T19:31:33Z",
    "nvd_published_at" : null
  }
}