René's URL Explorer Experiment


Title: Server-side request forgery via unvalidated webhook alert-channel URL · Issue #4172 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: Server-side request forgery via unvalidated webhook alert-channel URL · Issue #4172 · triggerdotdev/trigger.dev

X Title: Server-side request forgery via unvalidated webhook alert-channel URL · Issue #4172 · triggerdotdev/trigger.dev

Description: Provide environment information reported on 4 June 2026 GHSA-xxv7-2vv3-h682 - no response Describe the bug Summary A project member can create a webhook alert channel whose delivery URL points at an internal address, and trigger.dev's co...

Open Graph Description: Provide environment information reported on 4 June 2026 GHSA-xxv7-2vv3-h682 - no response Describe the bug Summary A project member can create a webhook alert channel whose delivery URL points at a...

X Description: Provide environment information reported on 4 June 2026 GHSA-xxv7-2vv3-h682 - no response Describe the bug Summary A project member can create a webhook alert channel whose delivery URL points at a...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4172

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Server-side request forgery via unvalidated webhook alert-channel URL","articleBody":"### Provide environment information\n\nreported on 4 June 2026 https://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-xxv7-2vv3-h682 - no response\n\n### Describe the bug\n\n### 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\n\n### Reproduction repo\n\nhttps://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-xxv7-2vv3-h682\n\n### To reproduce\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/\u003cprojectRef>/alertChannels\nAuthorization: Bearer \u003ctoken>\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).\n\n\n### Additional information\n\nAffected versions\nHEAD 4ea3ef13","author":{"url":"https://github.com/geo-chen","@type":"Person","name":"geo-chen"},"datePublished":"2026-07-06T15:48:39Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4172"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef2373e6-d593-de65-14b6-620710c4f226
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8888:8BE43:2FAD5A8:43B15A9:6AFAE3E2
html-safe-nonce539475018c4ef56993bc89639eaeea4ded7c283f6a365abd71b89edb0998ac26
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODg4OjhCRTQzOjJGQUQ1QTg6NDNCMTVBOTo2QUZBRTNFMiIsInZpc2l0b3JfaWQiOiIzMjY3MzM0NjY2NDMxNjg1NjAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2df58813af133f5e23f0814462100a66f850f5e604bae860007d4884ddcabf9d
hovercard-subject-tagissue:4820787688
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4172/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2bb73b4ad9be3a8f7fa4aa19f21e3d6a0d4db800d7ff5fa9de153b4064074cc6/triggerdotdev/trigger.dev/issues/4172
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2bb73b4ad9be3a8f7fa4aa19f21e3d6a0d4db800d7ff5fa9de153b4064074cc6/triggerdotdev/trigger.dev/issues/4172
og:image:altProvide environment information reported on 4 June 2026 GHSA-xxv7-2vv3-h682 - no response Describe the bug Summary A project member can create a webhook alert channel whose delivery URL points at a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegeo-chen
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/4172#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4172
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4172
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4172
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4172
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4172
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4172
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4172
Server-side request forgery via unvalidated webhook alert-channel URLhttps://github.com/triggerdotdev/trigger.dev/issues/4172#top
https://github.com/geo-chen
geo-chenhttps://github.com/geo-chen
on Jul 6, 2026https://github.com/triggerdotdev/trigger.dev/issues/4172#issue-4820787688
GHSA-xxv7-2vv3-h682https://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-xxv7-2vv3-h682
http://169.254.169.254/http://169.254.169.254/
http://169.254.169.254/http://169.254.169.254/
http://127.0.0.1/http://127.0.0.1/
GHSA-xxv7-2vv3-h682https://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-xxv7-2vv3-h682
4ea3ef1https://github.com/triggerdotdev/trigger.dev/commit/4ea3ef138febc66999785afdcd17e056e65a5e21
https://github.com/carderne
cardernehttps://github.com/carderne
on Jul 9, 2026https://github.com/triggerdotdev/trigger.dev/issues/4172#issuecomment-4926425433
#4199https://github.com/triggerdotdev/trigger.dev/pull/4199
cardernehttps://github.com/carderne
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 9, 2026https://github.com/triggerdotdev/trigger.dev/issues/4172#event-27771169196
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4172
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4172
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.