{
 "id": "WPSEC-2026-4716",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4716/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4716/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4716/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4716.json",
 "title": "Ultimate Blocks <= 3.7.0 - Unauthenticated Stored Cross-Site Scripting via Comment Attributes",
 "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.",
 "plugin": {
  "slug": "ultimate-blocks",
  "name": "Ultimate Blocks",
  "full_name": "Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor",
  "wordpress_org": "https://wordpress.org/plugins/ultimate-blocks/",
  "advisories_url": "https://wpsec.com/vuln/plugin/ultimate-blocks/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/ultimate-blocks"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "3.2.5",
    "from_inclusive": true,
    "to": "3.7.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.2.5 before 3.7.1"
  ]
 },
 "introduced_in": "3.2.5",
 "fixed_in": "3.7.1",
 "remediation": "Update to 3.7.1 or later.",
 "fix_released": "2026-12-05T04:47:59+00:00",
 "published": "2026-12-06T05:45:52+00:00",
 "updated": "2026-12-05T10:42:41.889910+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4716/",
  "https://plugins.svn.wordpress.org/ultimate-blocks/tags/3.7.1/",
  "https://wordpress.org/plugins/ultimate-blocks/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/ultimate-blocks",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-12-06"
 }
}