What’s Vulnerable › Vulnerabilities

CVE-2025-13457: WooCommerce Square <= 5.1.1 - Unauthenticated Insecure Direct Object Reference to Sensitive Information Exposure in get_token_by_id

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.

Affected products

How to fix

Upgrade to a fixed version: WooCommerce Square 4.2.3, 4.3.2, 4.4.2, 4.5.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-13457 or the next vulnerability affects your stack