Custom Query Blocks <= 5.6.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Post Types Block Attributes

Medium 6.4 CWE-79Fixed in 5.7.0
ID
WPSEC-2026-0756
Plugin
Custom Query Blocks (post-type-archive-mapping)
Affected
all versions before 5.7.0
Remediation
Update to 5.7.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-10
Attack surface
Custom Query Blocks on WPSec AttackSurface
Fix released
Published

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.

References

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

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

License: CC BY 4.0