# Cozy Blocks – Website Builder for WordPress Block Editor | Gutenberg Blocks, Patterns & Templates <= 2.2.27 - Authenticated (Contributor+) Stored Cross-Site Scripting via Featured Product Tabs Block Icon Attributes

- **ID:** WPSEC-2026-1231
- **Plugin:** Cozy Blocks – Website Builder & Business Growth Toolkit | Popups, Lead Forms & Inbox (`cozy-addons`), https://wordpress.org/plugins/cozy-addons/
- **Affected versions:** all versions before 2.2.28
- **Fixed in:** 2.2.28 (Update to 2.2.28 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-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cozy-addons
- **Fix released:** 2026-10-17
- **Published:** 2026-10-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1231/

## Description

The Cozy Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Featured Product Tabs block's icon attributes ('gap', 'view' and 'layout') in all versions up to, and including, 2.2.27 due to insufficient input sanitization and output escaping. The values are written directly into HTML style and class 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-1231/
- https://plugins.svn.wordpress.org/cozy-addons/tags/2.2.28/
- https://wordpress.org/plugins/cozy-addons/

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

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.
