Vulnerabilities in pkg:npm/@worker-tools/stripe-webhook
PACKAGEGHSA-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.
pkg:npm/@worker-tools/stripe-webhook
Vulnerability advisories affecting package pkg:npm/@worker-tools/stripe-webhook. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4g53-vp7q-gfjv | - | HIGH | constructEvent does not verify header |
GHSA-4g53-vp7q-gfjv at a Glance
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.
npm install @worker-tools/stripe-webhook@1.1.4
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
GHSA-4g53-vp7q-gfjv Affected @worker tools/stripe webhook Versions
1 component(s)| 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?
Which @worker tools/stripe webhook versions are affected?
What version fixes GHSA-4g53-vp7q-gfjv?
Is @worker-tools/stripe-webhook affected?
What CWE is associated with GHSA-4g53-vp7q-gfjv?
How can I check npm dependencies for GHSA-4g53-vp7q-gfjv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}