GHSA-q567-cr4x-96w4: SSRF

Published Oct 2, 2026
·
Updated

Summary

A WEBHOOK alert channel stores a user-supplied url. When an alert fires (deployment/run failure, error groups), the webapp server (alertsWorker -> DeliverAlertService) POSTs the HMAC-signed alert payload to that URL via fetch(webhook.url, ...). The URL is never validated against a host allowlist or private-IP/metadata blocklist (a repo-wide search for 169.254, isPrivate, isLoopback, net.isIP, ssrf returns ZERO hits), and the API route's URL field is just z.string().optional() (no syntax check at all). So an authenticated tenant can point the webhook at internal infrastructure or 169.254.169.254 and the multi-tenant server fetches it.

Affected apps/webapp, HEAD 5d99457 (current main).

Root cause - Source (API route): app/presenters/v3/ApiAlertChannelPresenter.server.ts ApiAlertChannelData.url = z.string().optional() (no host validation); route app/routes/api.v1.projects.$projectRef.alertChannels.ts (PAT-auth). - Store: app/v3/services/alerts/createAlertChannel.server.ts persists {url, secret, version} verbatim. - Sink: app/v3/services/alerts/deliverAlert.server.ts:973 fetch(webhook.url, {method:"POST", headers:{"x-trigger-signature-hmacsha256":...}, body:rawPayload}); identical at deliverErrorGroupAlert.server.ts:258. Runs inside the webapp process; fetch follows redirects (IMDSv1-via-redirect). No egress guard anywhere.

Runtime PoC (proven on self-host) Seeded a project + STAGING env + a WEBHOOK channel with url=http://host.docker.internal:7766/... (an internal address from the server's POV) + a DEPLOYING deployment. Triggered via the public API POST /api/v1/deployments/deploymentssrfpoc/fail -> 200 -> FAILED -> alertsWorker -> the server fetched the listener. Captured: POST /ssrf-via-webhook HTTP/1.1 host: host.docker.internal:7766 x-trigger-signature-hmacsha256: <redacted> user-agent: node {"type":"alert.deployment.failed", ...} The webapp server (user-agent: node) made an outbound POST to the attacker-chosen internal URL; 169.254.169.254 / any internal host works identically.

Severity CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N ~ Medium. Blind (response not reflected) + POST-only (fixed body = signed alert payload), so it enables internal port/host scanning (delivery success/timing oracle), state-changing POSTs to internal services, and IMDSv1-via-redirect — not arbitrary GET exfiltration. PR:L (authenticated tenant). Egress private-IP/metadata blocking on server-issued webhooks is industry standard; its absence is the defect.

Suggested fix Validate the webhook URL on create (require http(s), resolve host, reject private/link-local/loopback/metadata ranges) AND re-check at fetch time (re-resolve after redirects or disable redirects / pin to resolved public IP). A shared assertPublicUrl(url) used by createAlertChannel + the two delivery sinks.

Dup Distinct CWE-918 class from the IDOR advisories. FRESH. (The Grav maintainer independently hardened the same webhook-URL-SSRF class in grav-plugin-api commit dfcc947 on 2026-06-26 — corroborating the class is real and fixable.)

Affected Software

1 affected componentFixes available
npm/trigger.dev<=4.5.1
4.5.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/trigger.dev to a version that resolves this vulnerability.

    Fixed in 4.5.2
  2. Compensating control

    Implement a shared assertPublicUrl(url) for webhook URLs: require http(s), resolve the hostname, and reject private, link-local, loopback, and metadata ranges. Apply it both when creating an alert channel and immediately before each webhook fetch; re-resolve after redirects or disable redirects, and pin requests to the resolved public IP.

Event History

Oct 2, 2026
Advisory Published
via GitHub·10:35 PM
Data Sourced
via GitHub·10:35 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What level of access is needed to exploit this issue?

An authenticated tenant needs PAT-authenticated access to create or modify an alert channel and supply its URL. Exploitation occurs when an alert is delivered to that configured channel.

2

What requests can the vulnerable server be induced to make?

The webapp server sends an HTTP POST using fetch to the tenant-supplied webhook URL. Because the URL has no host, private-IP, loopback, or metadata-address validation, it can be directed at internal infrastructure or 169.254.169.254.

3

When is the attacker-controlled URL contacted?

The URL is contacted when an alert fires, including deployment or run failures and error-group alerts. The POST payload is HMAC-signed before delivery.

4

What affected code state is identified?

The affected component is apps/webapp at current main commit 5d99457. No released version range is provided in the available data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203