GHSA-4g53-vp7q-gfjv constructEvent does not verify header

Not scored Published

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

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

Which versions are affected by GHSA-4g53-vp7q-gfjv?

2 open source packages ship an affected version, including @worker-tools/stripe-webhook.

PackageAffectedFixed in
@worker-tools/stripe-webhook npmAll versions1.1.4
@worker-tools/stripe-webhook npmAll versions1.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.

Sources

Is GHSA-4g53-vp7q-gfjv in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free