# Page Builder: Pagelayer – Drag and Drop website builder <= 2.2.2 - Authenticated (Contributor+) Missing Authorization to Global Style and Theme Template Modification via AI Layout Generation

- **ID:** WPSEC-2026-3577
- **Plugin:** Page Builder: Pagelayer – Drag and Drop website builder (`pagelayer`), https://wordpress.org/plugins/pagelayer/
- **Affected versions:** from 2.2.0 before 2.2.3
- **Fixed in:** 2.2.3 (Update to 2.2.3 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Medium, affected versions Low (as of 2026-11-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/pagelayer
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3577/

## Description

The Page Builder: Pagelayer – Drag and Drop website builder plugin for WordPress is vulnerable to unauthorized modification of data in versions 2.2.0 up to, and including, 2.2.2. This is due to missing capability checks in the AI layout generation flow of the /pagelayer/v1/ai/generate REST endpoint, which only required the edit_posts capability. The flow saved the site-wide pagelayer_global_colors and pagelayer_global_fonts options without checking for the manage_options capability, including through direct 'change global color' prompts that need no AI provider. It also created or overwrote published theme templates, such as headers and footers, without checking for the edit_theme_options capability. This makes it possible for authenticated attackers, with contributor-level access and above, to modify the site's global styles and to create or overwrite site-wide theme templates.

## References

- https://wpsec.com/vuln/WPSEC-2026-3577/
- https://plugins.svn.wordpress.org/pagelayer/tags/2.2.3/
- https://wordpress.org/plugins/pagelayer/

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

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.
