Security Alert Summary
The ZarinPal Payment Gateway for WooCommerce plugin contains an insecure direct object reference that allows an unauthenticated attacker to obtain WooCommerce order keys by calling a public handler. Those keys can be used against order-related endpoints to retrieve customers’ personal information for affected orders.
CVE Details
- CVE ID: CVE-2026-92251
- Affected component: ZarinPal Payment Gateway for WooCommerce plugin for WordPress
- Affected versions: Versions up to and including 5.1.1
- Published: November 26, 2026 at 4:18:12 PM UTC
- Last modified: November 26, 2026 at 4:18:12 PM UTC
- CVSS v3.1: Base score 7.5, severity HIGH, vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Authentication / privileges / user interaction: Authentication not required; privileges required: NONE; user interaction: NONE; attack vector: NETWORK; attack complexity: LOW
- Primary impact: Confidentiality: HIGH; Integrity: NONE; Availability: NONE
- Weakness: CWE-639 (Insecure Direct Object Reference)
Technical Details
The plugin registers a handler named Return_from_ZarinPal_Gateway() on the ?wc-api=wc_zpal endpoint (registered as woocommerce_api_wc_zpal). That handler accepts a wc_order parameter from the query string and loads the corresponding WooCommerce order without performing authentication, nonce, session, capability, or ownership checks.
When the loaded order is marked as paid, the handler issues an HTTP 302 redirect to get_return_url($order). The Location header of that redirect embeds the order’s secret order_key. Because the endpoint exposes the order_key in the redirect without any access control, an unauthenticated actor can harvest order keys for arbitrary orders and then use those keys against the standard WooCommerce order-received, order-pay, and download endpoints to retrieve order-associated customer PII.
The impact is limited to disclosure of order-linked data (billing name, street address, phone number, email, purchased items, and totals) as described; the vulnerability is an information disclosure via insecure direct object reference rather than a code execution or privilege-escalation flaw.
How This Could Impact Your Website
Imagine a site owner running WooCommerce, internal staff who manage orders, and an external contractor who integrates with payment callbacks. An unauthenticated attacker can call the public ?wc-api=wc_zpal handler with a crafted wc_order value to collect order keys. With those keys the attacker can view order-received or order-pay pages and download-linked resources for those specific orders, exposing customers’ billing names, addresses, phone numbers, email addresses, purchased items, and totals.
For a site with many orders and multiple user roles, this increases the risk of targeted phishing or social engineering against customers and staff whose contact details are exposed. It can also leak customer data to third parties who should not have access. If you\’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles, especially contributor-level accounts and any accounts with order access.
- Enforce strong passwords and two-factor authentication for editor and administrator accounts.
- Remove unused or unmaintained plugins from the site.
- Monitor site activity and access logs for unusual behavior related to order endpoints and API access.
If you\’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://plugins.trac.wordpress.org/browser/zarinpal-woocommerce-payment-gateway/tags/5.1.1/class-wc-gateway-zarinpal.php#L391
- https://plugins.trac.wordpress.org/browser/zarinpal-woocommerce-payment-gateway/tags/5.1.1/class-wc-gateway-zarinpal.php#L400
- https://plugins.trac.wordpress.org/browser/zarinpal-woocommerce-payment-gateway/tags/5.1.1/class-wc-gateway-zarinpal.php#L93
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3790807%40zarinpal-woocommerce-payment-gateway&new=3790807%40zarinpal-woocommerce-payment-gateway
- https://www.wordfence.com/threat-intel/vulnerabilities/id/d0f61c11-a437-4f51-8462-39a17f8bf3a8?source=cve