RubySec

Providing security resources for the Ruby community

GHSA-6mr3-672j-v5hf (pay): Webhook signature bypass for Lemon Squeezy in Pay

Webhook signature bypass for Lemon Squeezy in Pay

Published: October 06, 2026

SECURITY IDENTIFIERS

GEM

pay

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.

RELATED