Security Vulnerability Report
中文
CVE-2026-2509 CVSS 6.4 MEDIUM

CVE-2026-2509

Published: 2026-04-08 14:16:28
Last Modified: 2026-04-24 18:05:09

Description

The Page Builder: Pagelayer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Button widget's Custom Attributes field in all versions up to, and including, 2.0.8. This is due to an incomplete event handler blocklist in the 'pagelayer_xss_content' XSS filtering function, which blocks common, but not all, event handlers. 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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Page Builder: Pagelayer <= 2.0.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC: Stored XSS in Pagelayer Button Widget Step 1: Log in as a Contributor user. Step 2: Edit a page and add a 'Button' widget. Step 3: In the 'Custom Attributes' field, input the following payload: onmouseover="alert('CVE-2026-2509')" Step 4: Save/Publish the page. Step 5: View the page and hover over the button to trigger the XSS. --> <div onmouseover="alert('CVE-2026-2509')">Hover Me</div>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-2509", "sourceIdentifier": "[email protected]", "published": "2026-04-08T14:16:27.693", "lastModified": "2026-04-24T18:05:09.240", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Page Builder: Pagelayer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Button widget's Custom Attributes field in all versions up to, and including, 2.0.8. This is due to an incomplete event handler blocklist in the 'pagelayer_xss_content' XSS filtering function, which blocks common, but not all, event handlers. 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/pagelayer/trunk/main/functions.php#L1293", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/pagelayer/trunk/main/shortcode_functions.php#L689", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3479046/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/915c119d-2bae-4ea6-babb-7e8e99054cd0?source=cve", "source": "[email protected]"}]}}