# CubeWP Framework <= 1.1.31 - Authenticated (Subscriber+) Stored Cross-Site Scripting via REST API Custom Field Meta

- **ID:** WPSEC-2026-3141
- **Plugin:** CubeWP Framework (`cubewp-framework`), https://wordpress.org/plugins/cubewp-framework/
- **Affected versions:** from 1.0.6 before 1.1.32
- **Fixed in:** 1.1.32 (Update to 1.1.32 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-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cubewp-framework
- **Fix released:** 2026-11-13
- **Published:** 2026-11-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3141/

## Description

The CubeWP Framework plugin for WordPress is vulnerable to Stored Cross-Site Scripting via custom field values saved through the REST API (cubewp_user_meta, cubewp_post_meta and cubewp_term_meta) in all versions up to, and including, 1.1.31. This is due to insufficient input sanitization and output escaping: colour field values were placed raw into a style attribute, Business Hours day keys and times were concatenated into markup and attributes, and Google address values were output unescaped. This makes it possible for authenticated attackers, with subscriber-level access and above (for example through /wp/v2/users/me), to inject arbitrary web scripts that execute when a user views author or single pages, or when an administrator opens the attacker's profile under Users.

## References

- https://wpsec.com/vuln/WPSEC-2026-3141/
- https://plugins.svn.wordpress.org/cubewp-framework/tags/1.1.32/
- https://wordpress.org/plugins/cubewp-framework/

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

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.
