All reports
High

constructEvent does not verify header

Affected versions

Affected versions
< 1.1.4
Fixed version
1.1.4

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

Links