Vulnerability in @worker-tools/stripe-webhook: constructEvent does not verify header

@worker-tools/stripe-webhook Updated 02 Oct 2025

Summary

28/05/2021
HIGH
Yes i
High
Not published

GHSA-4g53-vp7q-gfjv: constructEvent does not verify header. Affects @worker-tools/stripe-webhook versions < 1.1.4. Fixed in 1.1.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @worker-tools/stripe-webhook package is an npm package that provides functionality for verifying Stripe webhook requests. It includes a function called constructEvent which is used to verify the header of a webhook request. However, prior to version 1.1.4, this function does not properly verify the header, making it susceptible to potential security vulnerabilities.

Vulnerability Detail

The vulnerability in @worker-tools/stripe-webhook arises from the lack of header verification in the constructEvent function. This means that anyone verifying a Stripe webhook request using this function may be vulnerable to potential attacks. The impact of this vulnerability can vary depending on the specific use case, but it has the potential to compromise the security and integrity of the webhook verification process. It is important to note that this vulnerability has been acknowledged and addressed by the package maintainers, and a patch has been released in version 1.1.4.

How To Fix

Latest published version: 1.1.4 as of 22 Oct 2026

npm install @worker-tools/stripe-webhook@1.1.4

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to version 1.1.4 is not immediately feasible, a workaround is to use the await verifyHeader(...) function directly instead of relying on the constructEvent function. This will bypass the vulnerable code and provide a temporary solution until the package can be updated.

Conclusion

In conclusion, the @worker-tools/stripe-webhook package prior to version 1.1.4 is vulnerable to a security issue where the constructEvent function does not properly verify the header of a webhook request. This vulnerability can potentially compromise the security and integrity of the webhook verification process. It is recommended to upgrade to version 1.1.4 or use the provided workaround until the package can be updated. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @worker-tools/stripe-webhook →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific use case, but it has the potential to compromise the security and integrity of the webhook verification process.

To fix this vulnerability, it is recommended to upgrade to version 1.1.4 of the @worker-tools/stripe-webhook package.

Yes, a workaround is to use the await verifyHeader(...) function directly instead of relying on the constructEvent function.

Yes, the vulnerability has been acknowledged and addressed by the package maintainers. A patch has been released in version 1.1.4.

More information about this vulnerability can be found in the GitHub advisory: [link to GitHub advisory]

References

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 1.1.4 as of 22 Oct 2026

npm install @worker-tools/stripe-webhook@1.1.4

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback