{
 "id": "WPSEC-2026-0756",
 "url": "https://wpsec.com/vuln/WPSEC-2026-0756/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-0756/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-0756/index.md",
 "title": "Custom Query Blocks <= 5.6.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Post Types Block Attributes",
 "description": "The Custom Query Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Custom Post Types block's color and alignment attributes (titleColor, contentColor, titleAlignment, metaAlignment and contentAlignment) in all versions up to, and including, 5.6.0. This is due to insufficient input sanitization and output escaping: the attribute values are placed unescaped inside single-quoted inline style attributes. 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.",
 "plugin": {
  "slug": "post-type-archive-mapping",
  "name": "Custom Query Blocks",
  "full_name": "Custom Query Blocks",
  "wordpress_org": "https://wordpress.org/plugins/post-type-archive-mapping/",
  "advisories_url": "https://wpsec.com/vuln/plugin/post-type-archive-mapping/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/post-type-archive-mapping"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "5.7.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 5.7.0"
  ]
 },
 "introduced_in": null,
 "fixed_in": "5.7.0",
 "remediation": "Update to 5.7.0 or later.",
 "fix_released": "2026-10-09T15:29:49+00:00",
 "published": "2026-10-10T15:41:27+00:00",
 "updated": "2026-10-10T14:53:40.813947+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-0756/",
  "https://plugins.svn.wordpress.org/post-type-archive-mapping/tags/5.7.0/",
  "https://wordpress.org/plugins/post-type-archive-mapping/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/post-type-archive-mapping",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-10"
 }
}