CVE-2025-13457
Description
The WooCommerce Square plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 5.1.1 via the get_token_by_id function due to missing validation on a user controlled key. This makes it possible for unauthenticated attackers to expose arbitrary Square "ccof" (credit card on file) values and leverage this value to potentially make fraudulent charges on the target site.
How to fix
- woocommerce WooCommerce Square4.2.3, 4.3.2, 4.4.2, 4.5.2, 4.6.4, 4.7.4, 4.8.8, 4.9.9, 5.0.1, 5.1.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| woocommerce WooCommerce Square | 4.2.0 ≤ v < 4.2.3, 4.3.0 ≤ v < 4.3.2, 4.4.0 ≤ v < 4.4.2, 4.5.0 ≤ v < 4.5.2, 4.6.0 ≤ v < 4.6.4, 4.7.0 ≤ v < 4.7.4, 4.8.0 ≤ v < 4.8.8, 4.9.0 ≤ v < 4.9.9, 5.0.0 ≤ v < 5.0.1, 5.1.0 ≤ v < 5.1.2 | 4.2.3, 4.3.2, 4.4.2, 4.5.2, 4.6.4, 4.7.4, 4.8.8, 4.9.9, 5.0.1, 5.1.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.