GHSA-4g53-vp7q-gfjv constructEvent does not verify header
Attackers can bypass Stripe webhook signature verification, allowing them to send forged events to applications using this library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-4g53-vp7q-gfjv?
GHSA-4g53-vp7q-gfjv is a vulnerability in @worker-tools/stripe-webhook, published on 28 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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
Which versions are affected by GHSA-4g53-vp7q-gfjv?
2 open source packages ship an affected version, including @worker-tools/stripe-webhook.
| Package | Affected | Fixed in |
|---|---|---|
@worker-tools/stripe-webhook npm | All versions | 1.1.4 |
@worker-tools/stripe-webhook npm | All versions | 1.1.4 |
How do I fix GHSA-4g53-vp7q-gfjv?
Upgrade @worker-tools/stripe-webhook to 1.1.4 or later.
Is GHSA-4g53-vp7q-gfjv being exploited?
There is no known exploitation of GHSA-4g53-vp7q-gfjv in the wild and no public exploit code.