RubySec

Providing security resources for the Ruby community

GHSA-5p37-w3f3-55pm (pay): Webhook signature bypass for Paddle Billing in Pay

Webhook signature bypass for Paddle Billing 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::PaddleBillingController#valid_signature? computes an HMAC-SHA256 signature using Pay::PaddleBilling.signing_secret.to_s as the key. When the PADDLE_BILLING_SIGNING_SECRET environment variable and Rails credentials are both unset, signing_secret returns nil, and .to_s coerces it to an empty string. Forged Paddle Billing 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