# SureCart <= 4.9.6 - Unauthenticated Path Traversal via REST API 'id' Parameter

- **ID:** WPSEC-2026-1397
- **Plugin:** SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments (`surecart`), https://wordpress.org/plugins/surecart/
- **Affected versions:** all versions before 4.10.0
- **Fixed in:** 4.10.0 (Update to 4.10.0 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-22
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/surecart
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1397/

## Description

The SureCart plugin for WordPress is vulnerable to Path Traversal via the REST API 'id' parameter in all versions up to, and including, 4.9.6. This is due to upstream API endpoints being built from request 'id' values without rejecting dot segments or query delimiters, and to body or query values named 'id' taking precedence over the route's URL capture. This makes it possible for unauthenticated attackers, using publicly accessible routes such as checkout retrieval and update, to send the plugin's store-authenticated platform requests to other upstream endpoints, for example to mark a checkout as manually paid or read other platform objects.

## References

- https://wpsec.com/vuln/WPSEC-2026-1397/
- https://plugins.svn.wordpress.org/surecart/tags/4.10.0/
- https://wordpress.org/plugins/surecart/

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

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.
