# Nexi XPay <= 8.4.0 - Unauthenticated Insecure Direct Object Reference via Payment Return and Cancel Endpoints

- **ID:** WPSEC-2026-4424
- **Plugin:** Nexi XPay (`cartasi-x-pay`), https://wordpress.org/plugins/cartasi-x-pay/
- **Affected versions:** from 6.0.0 before 8.5.0
- **Fixed in:** 8.5.0 (Update to 8.5.0 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-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cartasi-x-pay
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4424/

## Description

The Nexi XPay plugin for WordPress is vulnerable to Insecure Direct Object Reference via the XPay and NPG payment return, cancel and Google Pay redirect endpoints in all versions up to, and including, 8.4.0. This is due to these endpoints identifying the order only by the user-supplied 'nexi_order_id' value, with no check of a per-order secret. This makes it possible for unauthenticated attackers who enumerate order IDs to obtain the order key of other customers' orders from the redirect to the WooCommerce cancel-order or order-received URL. With that key they may view guest order details or cancel pending or failed guest orders. Attackers can also overwrite the payment error message stored on other customers' orders and trigger payment status processing for them.

## References

- https://wpsec.com/vuln/WPSEC-2026-4424/
- https://plugins.svn.wordpress.org/cartasi-x-pay/tags/8.5.0/
- https://wordpress.org/plugins/cartasi-x-pay/

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

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.
