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

- **ID:** WPSEC-2026-2944
- **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-2944/

## Description

The Paytrail for WooCommerce plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 2.9.0 due to the add-card return handler accepting any checkout-tokenization-id from the URL without binding it to the customer who started the add-card flow. This makes it possible for unauthenticated attackers to make a logged-in customer's account store an attacker-controlled card token, or replay an add-card return, granted they can trick the customer into visiting a crafted link.

## References

- https://wpsec.com/vuln/WPSEC-2026-2944/
- 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-2944/

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.
