Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @worker-tools/stripe-webhook
  4. ›
  5. GMS-2021-31

GMS-2021-31: constructEvent does not verify header

May 28, 2021

Impact

Anyone verifying a Stripe webhook request via this library’s constructEvent function.

Patches

Upgrade to

Workarounds

Use await verifyHeader(...) directly instead of constructEvent.

References

https://github.com/worker-tools/stripe-webhook/issues/1

References

  • github.com/advisories/GHSA-4g53-vp7q-gfjv
  • github.com/worker-tools/stripe-webhook/security/advisories/GHSA-4g53-vp7q-gfjv

Code Behaviors & Features

Detect and mitigate GMS-2021-31 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.4

Fixed versions

  • 1.1.4

Solution

Upgrade to version 1.1.4 or above.

Source file

npm/@worker-tools/stripe-webhook/GMS-2021-31.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.