GHSA-4g53-vp7q-gfjv

Suggest an improvement
Source
https://github.com/advisories/GHSA-4g53-vp7q-gfjv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-4g53-vp7q-gfjv/GHSA-4g53-vp7q-gfjv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4g53-vp7q-gfjv
Published
2021-05-28T19:18:28Z
Modified
2021-05-27T22:24:49Z
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

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-05-27T22:24:49Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @worker-tools/stripe-webhook

Package

Name
@worker-tools/stripe-webhook
View open source insights on deps.dev
Purl
pkg:npm/%40worker-tools/stripe-webhook

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.1.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-4g53-vp7q-gfjv/GHSA-4g53-vp7q-gfjv.json"