Vulnerabilities / Ultimate Blocks / WPSEC-2026-4716

Ultimate Blocks <= 3.7.0 - Unauthenticated Stored Cross-Site Scripting via Comment Attributes

Medium 5.4 CWE-79Fixed in 3.7.1
ID
WPSEC-2026-4716
Plugin
Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor (ultimate-blocks)
Affected
from 3.2.5 before 3.7.1
Remediation
Update to 3.7.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-06
Attack surface
Ultimate Blocks on WPSec AttackSurface
Fix released
Published

Description

The Ultimate Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via HTML attributes in content rendered inside its blocks in all versions up to, and including, 3.7.0. The cause is that the Responsive Control extension (a render_block filter on every ub/ block) and the strip_xss() helper used by the Styled List and Styled Box blocks parse the rendered markup with DOMDocument and write it back with saveHTML(). libxml copies attribute values that contain "&{...}" without escaping them, so quotes WordPress had escaped come out raw, and wptexturize can then break the attribute. This makes it possible for unauthenticated attackers to inject arbitrary web scripts through comments shown by a Comments block that the site owner has placed inside an Ultimate Blocks block. Authenticated attackers with Contributor-level access and above can do the same through content they nest inside these blocks. The scripts run whenever a user views the affected page.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0