CVE-2026-8981

Lazy Blocks < 4.3.0 - Admin+ Stored XSS via Custom Block Frontend HTML

Published Jun 9, 2026 CVSS 3.1 · 3.5 Low EPSS < 1% KEV · Not listed
Description
The Custom Block Builder WordPress plugin before 4.3.0 does not consistently check the unfiltered_html capability across all paths that write to its block template code fields, allowing administrators on multisite installations (or single-site installs with DISALLOW_UNFILTERED_HTML defined) to inject arbitrary JavaScript that executes for any visitor of pages embedding the affected block.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the Custom Block Builder WordPress plugin before version 4.3.0 where the unfiltered_html capability is not checked on all paths that write into block template code fields. Administrators, especially on multisite installations or on single‑site configurations with DISALLOW_UNFILTERED_HTML set, can supply arbitrary JavaScript that is stored and then executed whenever a page embeds the affected block. Because the script runs in the context of the visitor's browser, the impact is that an attacker can execute arbitrary client‑side code, steal user session cookies, redirect visitors, or load additional malicious payloads.

Affected Systems

The affected product is the Custom Block Builder WordPress plugin, versions older than 4.3.0. Administrators on multisite setups or single‑site sites that have DISALLOW_UNFILTERED_HTML enabled can inject scripts that will run for any visitor of pages containing the block.

Risk and Exploitability

The attack path requires only an administrative account; an attacker can willingly exploit the storage of malicious JavaScript through the block editor. The vulnerability has a CVSS score of 3.5, indicating low severity, because the injected scripts run for all visitors, enabling cookie theft or phishing. No EPSS score is available, and the flaw is not in the CISA KEV list. Because exploitation depends solely on admin privileges, the best defenses are to patch and to restrict or remove the vulnerable block templates.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Custom Block Builder plugin to version 4.3.0 or newer, which enforces the unfiltered_html check on all block template fields.
  • After upgrading, audit existing custom blocks and delete or sanitize any that contain leftover JavaScript.
  • If the upgrade cannot be performed immediately, limit the unfiltered_html capability to trusted administrators only and enable DISALLOW_UNFILTERED_HTML on sites that run older plugin versions.

Generated by OpenCVE AI on June 9, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Custom Block Builder
Custom Block Builder custom Block Builder
Wordpress
Wordpress wordpress
Vendors & Products Custom Block Builder
Custom Block Builder custom Block Builder
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Weaknesses CWE-79
Type Values Removed Values Added
Description The Custom Block Builder WordPress plugin before 4.3.0 does not consistently check the unfiltered_html capability across all paths that write to its block template code fields, allowing administrators on multisite installations (or single-site installs with DISALLOW_UNFILTERED_HTML defined) to inject arbitrary JavaScript that executes for any visitor of pages embedding the affected block.
Title Lazy Blocks < 4.3.0 - Admin+ Stored XSS via Custom Block Frontend HTML
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
WPScan
Published
Updated
Jun 9, 2026, 10:32 AM
Reserved
May 19, 2026, 1:11 PM
Status
Deferred
Published
Jun 9, 2026, 6:16 AM
Modified
Jul 23, 2026, 8:10 AM