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.
Published: 2026-06-09
Score: 3.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 09 Jun 2026 11:30:00 +0000

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'}


Tue, 09 Jun 2026 09:15:00 +0000

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

Tue, 09 Jun 2026 07:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-79

Tue, 09 Jun 2026 06:15:00 +0000

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

Subscriptions

Custom Block Builder Custom Block Builder
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: WPScan

Published:

Updated: 2026-06-09T10:32:50.766Z

Reserved: 2026-05-19T13:11:53.990Z

Link: CVE-2026-8981

cve-icon Vulnrichment

Updated: 2026-06-09T10:32:43.295Z

cve-icon NVD

Status : Deferred

Published: 2026-06-09T06:16:54.067

Modified: 2026-06-09T13:51:18.770

Link: CVE-2026-8981

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T13:00:05Z

Weaknesses