# Paytrail for WooCommerce <= 2.9.0 - Cross-Site Request Forgery to Saved Payment Card Deletion

- **ID:** WPSEC-2026-2942
- **Plugin:** Paytrail for WooCommerce (`paytrail-for-woocommerce`), https://wordpress.org/plugins/paytrail-for-woocommerce/
- **Affected versions:** all versions before 2.10.0
- **Fixed in:** 2.10.0 (Update to 2.10.0 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-352
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/paytrail-for-woocommerce
- **Fix released:** 2026-11-11
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2942/

## Description

The Paytrail for WooCommerce plugin for WordPress is vulnerable to Cross-Site Request Forgery via the saved card deletion endpoint in all versions up to, and including, 2.9.0, due to missing nonce validation on the card delete action, which only checks for a Content-Type header containing "application/json". This makes it possible for unauthenticated attackers to delete a logged-in customer's saved payment cards via a forged request, granted they can trick the customer into performing an action such as visiting a malicious page.

## References

- https://wpsec.com/vuln/WPSEC-2026-2942/
- https://plugins.svn.wordpress.org/paytrail-for-woocommerce/tags/2.10.0/
- https://wordpress.org/plugins/paytrail-for-woocommerce/

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

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.
