MEDIUM 6.4

CVE-2026-3297: Pagelayer Plugin Stored XSS Vulnerability via Anchor Block

A vulnerability in the Pagelayer WordPress plugin allows users with contributor access or higher to inject malicious code into pages through the Anchor block feature. Because the plugin doesn't properly validate and escape user input, this injected code runs whenever anyone visits the affected page, potentially compromising site visitors or stealing their data.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.4 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weaknesses (CWE)
CWE-79
Affected products
0 configuration(s)
Published / Modified
2026-06-13 / 2026-06-17

NVD description (verbatim)

The Page Builder: Pagelayer – Drag and Drop website builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Anchor block in versions up to, and including, 2.0.9 due to insufficient input sanitization and output 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.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-3297 is a Stored Cross-Site Scripting (XSS) vulnerability in Pagelayer versions up to 2.0.9. The vulnerability exists in the Anchor block functionality, which fails to sanitize user input during creation and does not properly escape output during rendering. This allows authenticated contributors and above to persistently inject JavaScript payloads into page content. The injected scripts execute in the context of any user viewing the affected page, including administrators, making this a post-authentication but high-impact flaw.

Business impact

A compromised Pagelayer installation can serve as a vector to steal admin credentials, modify website content, redirect visitors to malicious sites, or distribute malware. For WordPress site operators, this reduces the trustworthiness of their platform and exposes visitors to secondary attacks. Organizations relying on Pagelayer for client websites face reputational and legal liability if visitor data is compromised. The requirement for contributor-level access limits immediate risk in well-governed environments but is a significant concern in multi-author or agency setups.

Affected systems

The vulnerability affects Pagelayer versions 2.0.9 and earlier. Any WordPress site running an affected version with the plugin active is vulnerable if one or more user accounts with contributor, author, editor, or administrator role exist. The risk is elevated in WordPress installations where contributor accounts are assigned to untrusted or compromised users.

Exploitability

Exploitation requires authenticated access (contributor level or above) and knowledge of the Pagelayer page builder interface. An attacker cannot exploit this remotely without valid credentials. However, in shared hosting, agency, or multi-author blog environments, the bar to obtaining contributor access is often low. No user interaction is required beyond the initial page creation—scripts execute automatically when the page is viewed. The straightforward nature of XSS injection via a UI block makes this practical for a motivated insider or credential-compromised user.

Remediation

Update Pagelayer to the latest version that patches this vulnerability. Verify the patched version against the plugin's official repository. As an interim measure, restrict contributor-level access to trusted users only and monitor page creation activity. Consider using a Web Application Firewall (WAF) rule to detect and block common XSS payloads in Pagelayer requests. Audit existing pages for suspicious Anchor block content.

Patch guidance

Check the Pagelayer plugin repository or the vendor's security advisory for the patched version released after 2.0.9. Apply the update through the WordPress plugin management interface or via your hosting provider. Test the update in a staging environment before rolling out to production, as page builder updates can occasionally affect page layouts. After patching, audit any pages created during the vulnerable window for injected content.

Detection guidance

Monitor WordPress database queries and logs for unusual activity in the Pagelayer tables, particularly inserts or updates to Anchor block data containing script tags or event handlers. Check page post_content fields for suspicious JavaScript, especially if stored in Anchor blocks. Review user access logs to identify which contributor-level accounts have recently created or modified pages. Deploy a WAF rule or security plugin to inspect outbound page HTML for unexpected script execution. Consider using a WordPress security scanner capable of detecting stored XSS patterns.

Why prioritize this

Although the CVSS score of 6.4 (MEDIUM) reflects the authentication requirement, the practical impact is significant: a single compromised or malicious contributor account can compromise every visitor to the site. The simplicity of exploitation via the UI and the post-authentication nature make this a high-priority fix for WordPress sites allowing multiple user roles. Sites with aggressive content collaboration should prioritize this above other medium-severity issues.

Risk score, explained

The CVSS 3.1 score of 6.4 reflects a network-accessible vulnerability (AV:N) requiring low privileges (PR:L), no user interaction (UI:N), and a changed scope (S:C) resulting in low confidentiality and integrity impact (C:L, I:L). The score appropriately penalizes the authentication requirement but does not fully capture the insider-threat aspect or the broad exposure to site visitors. In environments with permissive contributor access, the real-world risk may be higher.

Frequently asked questions

Can this be exploited without a WordPress account?

No. The vulnerability requires valid authenticated access with at least contributor-level permissions. However, in WordPress instances with open registration or in agency environments where multiple users have contributor roles, the barrier to exploitation is lower than it appears.

Does updating my WordPress core protect me from this vulnerability?

No. Pagelayer is a third-party plugin, not part of WordPress core. You must update the Pagelayer plugin specifically. Ensure you update to the patched version released after 2.0.9 by checking the plugin repository or vendor advisory.

If a page with injected scripts is deleted, are site visitors still at risk?

No, once the page is deleted from the database, the stored XSS payload is removed and no longer executes. However, any cached versions or archived copies could still pose a risk. Clear caches after removing compromised pages.

How can I tell if my site has been exploited?

Review the HTML source of pages built with Pagelayer for unexpected script tags, particularly within or near Anchor blocks. Check your WordPress database for suspicious content in post_content fields. Review user access logs to see which accounts created or edited pages during the vulnerable period. A WordPress security scanner can also help identify stored XSS payloads.

This analysis is based on the vulnerability record as published on 2026-06-13 and modified on 2026-06-17. Patch version numbers and availability should be verified directly with the Pagelayer vendor or the official WordPress plugin repository. This explainer is for informational purposes and does not constitute legal or professional security advice. Organizations should conduct their own risk assessment and testing before deploying patches in production environments. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).