GHSA-4g53-vp7q-gfjv: @worker tools/stripe webhook ConstructEvent Does Not Verify Header Vulnerability

HIGH
Published
Advisory Summary

GHSA-4g53-vp7q-gfjv is a HIGH constructevent does not verify header vulnerability (General Security Weakness) affecting @worker tools/stripe webhook libraries in the npm ecosystem. The issue involves constructevent does not verify header. Remediation is available by upgrading affected packages to version 1.1.4.

GHSA-4g53-vp7q-gfjv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4g53-vp7q-gfjv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product @worker tools/stripe webhook
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-4g53-vp7q-gfjv

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

@worker-tools/stripe-webhook fixed: 1.1.4
npm install @worker-tools/stripe-webhook@1.1.4
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 @worker-tools/stripe-webhook

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4g53-vp7q-gfjv, inspect your project dependencies using npm:

npm ls @worker-tools/stripe-webhook

Analyze the terminal output to locate any version of @worker tools/stripe webhook in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.4), your application is affected.

Note: The npm ls @worker-tools/stripe-webhook 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 General Security Weakness. In @worker tools/stripe webhook, 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

### Impact Anyone verifying a Stripe webhook request via this library's `constructEvent` function. ### Patches Upgrade to 1.1.4. ### Workarounds Use `await verifyHeader(...)` directly instead of `constructEvent`. ### References https://github.com/worker-tools/stripe-webhook/issues/1

GHSA-4g53-vp7q-gfjv Affected @worker tools/stripe webhook Versions

1 component(s)
Fixed Versions:
1.1.4
Product / Package Ecosystem Affected Versions Fixed Version
@worker-tools/stripe-webhook
npm
< 1.1.4
1.1.4

References

Frequently Asked Questions

What is GHSA-4g53-vp7q-gfjv?
GHSA-4g53-vp7q-gfjv is a security vulnerability in @worker tools/stripe webhook involving constructEvent does not verify header under General Security Weakness.
Which @worker tools/stripe webhook versions are affected?
Affected versions include releases prior to 1.1.4 across affected packages: @worker-tools/stripe-webhook.
What version fixes GHSA-4g53-vp7q-gfjv?
Upgrading to 1.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @worker-tools/stripe-webhook affected?
Yes, @worker-tools/stripe-webhook is affected in releases prior to 1.1.4. Upgrade your dependency to 1.1.4 or later.
What CWE is associated with GHSA-4g53-vp7q-gfjv?
GHSA-4g53-vp7q-gfjv is classified under General Security Weakness.
How can I check npm dependencies for GHSA-4g53-vp7q-gfjv?
Run the dependency tree command: 'npm ls @worker-tools/stripe-webhook'. 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-4g53-vp7q-gfjv",
  "modified" : "2021-05-27T22:24:49Z",
  "published" : "2021-05-28T19:18:28Z",
  "aliases" : [ ],
  "summary" : "constructEvent does not verify header",
  "details" : "### Impact\nAnyone verifying a Stripe webhook request via this library's `constructEvent` function.\n\n### Patches\nUpgrade to 1.1.4. \n\n### Workarounds\nUse `await verifyHeader(...)` directly instead of `constructEvent`.\n\n### References\nhttps://github.com/worker-tools/stripe-webhook/issues/1\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@worker-tools/stripe-webhook"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/worker-tools/stripe-webhook/security/advisories/GHSA-4g53-vp7q-gfjv"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-27T22:24:49Z",
    "nvd_published_at" : null
  }
}