# PayPlug for WooCommerce (Official) <= 3.1.0 - Unauthenticated Insecure Direct Object Reference to Order Status Modification via check_payment and create_payment_intent

- **ID:** WPSEC-2026-1339
- **Plugin:** PayPlug for WooCommerce (Official) (`payplug`), https://wordpress.org/plugins/payplug/
- **Affected versions:** all versions before 3.1.1
- **Fixed in:** 3.1.1 (Update to 3.1.1 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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-1339/

## Description

The PayPlug for WooCommerce (Official) plugin for WordPress is vulnerable to Insecure Direct Object Reference via the check_payment, applepay_update_payment and create_payment_intent AJAX actions in all versions up to, and including, 3.1.0 due to missing validation that the order referenced by the supplied payment_id or order_id belongs to the current customer session. This makes it possible for unauthenticated attackers to mark other customers' orders as failed, obtain order and payment URLs, update payments of other orders, and create payment intents for arbitrary orders.

## References

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

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

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.
