# WPC Smart Messages for WooCommerce <= 4.3.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via wpcsm_recent_order and wpcsm_product_terms Shortcode Attributes

- **ID:** WPSEC-2026-3642
- **Plugin:** WPC Smart Messages for WooCommerce (`wpc-smart-messages`), https://wordpress.org/plugins/wpc-smart-messages/
- **Affected versions:** from 3.0.1 before 4.3.6
- **Fixed in:** 4.3.6 (Update to 4.3.6 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-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wpc-smart-messages
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3642/

## Description

The WPC Smart Messages for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'text' attribute of the wpcsm_recent_order shortcode and the 'before', 'sep' and 'after' attributes of the wpcsm_product_terms shortcode in all versions up to, and including, 4.3.5. This is due to insufficient output escaping on these user-supplied shortcode attributes. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3642/
- https://plugins.svn.wordpress.org/wpc-smart-messages/tags/4.3.6/
- https://wordpress.org/plugins/wpc-smart-messages/

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

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.
