Skip to content

Webhook Creation with Predictable User-Specified Tokens

Moderate
pranaygp published GHSA-9r75-g2cr-3h76 Mar 5, 2026

Package

npm @workflow/core (npm)

Affected versions

<=4.1.0-beta.63

Patched versions

4.2.0-beta.64
npm workflow (npm)
<=4.1.0-beta.63
4.2.0-beta.64

Description

createWebhook() in Vercel Workflow DevKit accepts a user-specified token parameter that serves as the credential for the public webhook endpoint /.well-known/workflow/v1/webhook/{token}. Official documentation recommended predictable token patterns, making it possible for an unauthenticated remote attacker to guess the token and inject arbitrary payloads into the workflow execution context.

Impact

An attacker who guesses a webhook token can resume the associated workflow with an attacker-controlled HTTP request body, potentially triggering downstream side effects such as API calls, database writes, or deployments.

Fix

  • Upgrade to version 4.2.0-beta.64. The fix removes the token option from createWebhook() so that webhook tokens are always randomly generated by the SDK.
  • Runs created with versions prior to 4.2.0-beta.64, that are 1) still active (i.e. running), and 2) have open hooks, are still susceptible to this vulnerability. If you suspect the hook tokens are predictable or leaked - consider cancelling those runs and restarting them on the latest patch.

Workarounds

In case a version upgrade is not possible, avoid passing predictable or guessable values to the token parameter of createWebhook(). Instead, you can either

  • switch from createWebhook() to createHook() instead and programmatically resume hooks using resumeHook() instead of the public webhook endpoint, or
  • use createWebhook() without passing a user-provided token, which uses a non-guessable random nanoid by default.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVE ID

No known CVE

Weaknesses

Improper Authentication

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. Learn more on MITRE.

Credits