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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:14:44 +0000.