# PayPlug for WooCommerce (Official) <= 3.1.0 - Unauthenticated Insecure Direct Object Reference to Arbitrary Order Deletion and Modification via Apple Pay AJAX Actions

- **ID:** WPSEC-2026-1340
- **Plugin:** PayPlug for WooCommerce (Official) (`payplug`), https://wordpress.org/plugins/payplug/
- **Affected versions:** from 2.8.0 before 3.1.1
- **Fixed in:** 3.1.1 (Update to 3.1.1 or later.)
- **Severity:** High 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/payplug
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1340/

## Description

The PayPlug for WooCommerce (Official) plugin for WordPress is vulnerable to Insecure Direct Object Reference via the Apple Pay AJAX actions (applepay_cancel_order, update_applepay_order and update_applepay_payment) in all versions up to, and including, 3.1.0, due to missing validation that the user-supplied order_id belongs to the current customer session and trusting the client-supplied payment amount. This makes it possible for unauthenticated attackers to permanently delete arbitrary orders and abort their payments, alter the billing email, addresses, shipping and totals of other customers' orders, and update Apple Pay payments with an amount of their choosing.

## References

- https://wpsec.com/vuln/WPSEC-2026-1340/
- https://plugins.svn.wordpress.org/payplug/tags/3.1.1/
- https://wordpress.org/plugins/payplug/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1340/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
