# Cozy Blocks – Website Builder & Business Growth Toolkit | Popups, Lead Forms & Inbox <= 2.2.30 - Authenticated (Contributor+) Stored Cross-Site Scripting via Advanced Gallery Block Tab Attributes

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

## Description

The Cozy Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Advanced Gallery block's tab list attributes (tabsList) in all versions from 2.0.11 up to, and including, 2.2.30, due to insufficient output escaping. Each tab's id, and its index key, is printed into the data-slug and data-index HTML attributes of the gallery tab list without escaping. 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-4389/
- https://plugins.svn.wordpress.org/cozy-addons/tags/2.2.31/
- https://wordpress.org/plugins/cozy-addons/

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

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.
