Who can read your webhook signing secret, and who can point your webhooks somewhere else?
Show a signing secret once, verify every delivery, and treat a change to where webhooks deliver as a privileged action.
2 min readDEV GroupIntegrations & data movement · Security
A webhook is a standing export
Fewer people than you think should be able to do either. Show a signing secret once, verify every delivery on the receiving side, and treat creating a webhook or changing where it delivers as a privileged action, because a webhook is a standing export of your data. Two security advisories published on 8 and 9 November 2026 for open-source, self-hostable project and task tools show both halves. In one, a webhook's signing secret was meant to appear only when the webhook was created or its secret regenerated, but it also came back in every list, read, and update response. Anyone who could read those responses, or the logs, proxies, and browser tools that recorded them, could sign payloads the receiving system would accept as genuine. In the other, an API token scoped only to project webhooks was accepted for managing the owner's user-level webhooks when a user ID was supplied in the request body. A holder of that narrow token could register a webhook to a receiver they controlled and receive reminders and task payloads from all of the owner's projects, or read, change, or delete the owner's existing webhooks. Neither needed a novel exploit. Each turned an ordinary credential into a quiet copy of the data.
On the sending side
On the sending side, return the secret only at creation or regeneration, store it encrypted, and keep it out of API responses, logs, and error reports. Enforce token scope on the server against the resource being addressed, not an identifier the caller puts in the body, and keep a test that a project-scoped token is refused at the user level. Validate the destination URL when the connection is made, not only when the URL is saved, so a webhook cannot be aimed at internal addresses.
On the receiving side
On the receiving side, verify the signature over the raw request body with a constant-time comparison, reject deliveries whose signed timestamp falls outside a short window, and dedupe on the event ID so a replay is harmless. Support two active secrets during a rotation, so the sender can cut over without dropped deliveries, then retire the old one and prove a payload signed with it is rejected. Log every webhook created, every destination changed, and every secret regenerated, and alert on them the way you would on a new admin. Reconcile the webhooks that exist against an owned inventory of what should exist, with the receiver each one feeds. Secret handling, scope enforcement, signature checks, and the inventory around them are software work at the seams, and that is where we fit.
- Related: making webhook retries safe to repeat
- Related: keeping integration and automation tokens from becoming a breach
- Related: keeping the builder role from becoming an admin
- Integrations & data movement
- Sending or receiving webhooks with business data? Start a conversation
Sources
- Security advisory on webhook signing secrets in API responses. Security advisory. November 8, 2026.
- Security advisory on a project token managing user-level webhooks. Security advisory. November 9, 2026.
Was this useful?
Related notes
Security3 min read
How do you stop a new sign-up from making itself an owner of someone else's account?
In November 2026 a free sign-up made itself owner of a vendor's own org through one invitation check. Authorize every grant on the server.
- Authorization
- Multi-tenancy
- CI
Applied AI3 min read
How do you keep a stolen AI API key from running up the bill?
Stolen AI provider keys from a hosting breach ran up about $740,000. Cap each key's spend, watch usage like fraud, and rotate without a rebuild.
- Secrets
- Tokens
- Spend limits
- Monitoring
Applied AI2 min read
How do you keep an AI coding agent's saved approvals from committing secrets?
An agent that remembers an approval can save a secret into a file inside the repo. Keep that file out of git, and do not approve the literal command.
- Agents
- Secrets
- CI