Razorpay for WooCommerce <= 4.8.8 - Unauthenticated SQL Injection via Webhook Event Processing

Medium 5.9 CWE-89Fixed in 4.8.9
ID
WPSEC-2026-2602
Plugin
Razorpay for WooCommerce (woo-razorpay)
Affected
all versions before 4.8.9
Remediation
Update to 4.8.9 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-89
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-05
Attack surface
Razorpay for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The Razorpay for WooCommerce plugin for WordPress is vulnerable to time-based blind SQL Injection via the 'woocommerce_order_id' payment note processed by the payment.authorized webhook in all versions up to, and including, 4.8.8, due to insufficient escaping and lack of preparation of the SQL query in saveWebhookEvent(). The webhook is signed by Razorpay, but the payment notes come from the checkout options in the shopper's browser. This makes it possible for unauthenticated attackers who complete a payment authorization with altered checkout notes to append additional SQL to an existing query and extract sensitive information from the database.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0