# SureCart <= 4.9.6 - Authenticated (Author+) Stored Cross-Site Scripting via Block Icon Name

- **ID:** WPSEC-2026-1398
- **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.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **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-1398/

## Description

The SureCart plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the icon name block attribute in all versions up to, and including, 4.9.6. This is due to the block editor's icon component building a fetch path from the unvalidated icon name and injecting the fetched document's markup into the page, and the server-side SVG loader likewise concatenating the name into a file path. This makes it possible for authenticated attackers with author-level access and above, who can upload a text file containing markup, to point a block's icon at that file and inject arbitrary web scripts that execute when another user, such as an administrator, opens the post in the block editor.

## References

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

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

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.
