Webhook signature bypass for Lemon Squeezy in Pay
Published: October 06, 2026
SECURITY IDENTIFIERS
- GHSA: GHSA-6mr3-672j-v5hf
- Vendor Advisory: https://github.com/pay-rails/pay/security/advisories/GHSA-6mr3-672j-v5hf
GEM
SEVERITY
CVSS v3.x: 8.2 (High)
UNAFFECTED VERSIONS
< 12.0.0
PATCHED VERSIONS
>= 12.1.1
DESCRIPTION
Pay::Webhooks::LemonSqueezyController#valid_signature? computes an
HMAC-SHA256 signature using Pay::LemonSqueezy.signing_secret.to_s as the
key. When the LEMON_SQUEEZY_SIGNING_SECRET environment variable and Rails
credentials are both unset, signing_secret returns nil, and .to_s
coerces it to an empty string. Forged Lemon Squeezy webhook events can pass
signature verification.
The .to_s coercion on signing_secret was introduced in commit 4773c97
("Share one base controller across the five webhook controllers"), first
released in v12.0.0.
