Advisory

GHSA-4g53-vp7q-gfjv

Also known as: None

Summary

constructEvent does not verify header

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-28 19:18 UTC
Modified
2021-05-27 22:24 UTC

Affected packages and fixes

@worker-tools/stripe-webhook

npm · All systems

Affected

  • introduced 0, fixed 1.1.4 (semver)

Fixed versions

1.1.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences