# SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments <= 4.13.2 - Reflected Cross-Site Scripting via 'currency' Parameter

- **ID:** WPSEC-2026-4062
- **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.14.0
- **Fixed in:** 4.14.0 (Update to 4.14.0 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/surecart
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4062/

## Description

The SureCart plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'currency' parameter in all versions up to, and including, 4.13.2. This is due to insufficient input sanitization: the value was stored unvalidated in the sc_current_currency cookie, and after only sanitize_text_field() it was added with add_query_arg() to the home URL and to post, page and term permalinks, so quote characters reached links that are printed without URL escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

## References

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

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

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.
