Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108168 Overview
CVE-2026-108168 is a stored cross-site scripting (XSS) vulnerability in the DLX Plugins Custom Query Blocks WordPress plugin (post-type-archive-mapping). The flaw stems from improper neutralization of user-supplied input during web page generation [CWE-79]. Authenticated attackers with low privileges can inject persistent JavaScript payloads that execute in the browsers of users who view affected pages. The issue affects all plugin versions up through 5.6.0.
Critical Impact
Attackers with low-privilege accounts can store malicious scripts that execute against site visitors and administrators, enabling session theft, forced actions, and content manipulation across the WordPress site.
Affected Products
- DLX Plugins Custom Query Blocks (post-type-archive-mapping)
- All versions from initial release through 5.6.0
- WordPress sites with the plugin installed and active
Discovery Timeline
- 2026-10-12 - CVE-2026-108168 published to the National Vulnerability Database
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108168
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the Custom Query Blocks plugin for WordPress. The plugin fails to properly sanitize or encode user-controlled input before rendering it within generated web pages. An authenticated contributor-level user can submit crafted input containing JavaScript. The payload is persisted to the WordPress database and later rendered without adequate escaping. When another user loads the affected page, the browser executes the attacker's script in the context of the site's origin. User interaction is required to trigger execution, but the scope change amplifies impact by crossing security boundaries, such as from contributor to administrator sessions.
Root Cause
The root cause is missing output encoding and insufficient input sanitization in block attribute handling within the plugin's post-type archive mapping functionality. Block attributes supplied through the editor are stored and later echoed into HTML without passing through WordPress escaping functions such as esc_html(), esc_attr(), or wp_kses_post().
Attack Vector
Exploitation requires an authenticated account with permission to create or edit content using Custom Query Blocks. The attacker crafts a block configuration containing JavaScript within an attribute that is reflected into the rendered page. When an administrator or visitor views the page containing the malicious block, the script executes. See the Patchstack XSS Vulnerability Report for additional technical context.
Detection Methods for CVE-2026-108168
Indicators of Compromise
- Unexpected <script> tags, javascript: URIs, or inline event handlers (onerror, onload, onclick) stored within wp_posts content or post meta associated with Custom Query Blocks.
- Administrator sessions exhibiting unauthorized actions such as user creation, plugin installation, or settings changes shortly after viewing content.
- Outbound browser requests from administrator sessions to unfamiliar domains referenced in the page HTML.
Detection Strategies
- Query the WordPress database for Custom Query Blocks content containing suspicious strings such as <script, onerror=, or javascript:.
- Review plugin audit logs for recent block edits by low-privilege accounts (contributor, author).
- Enable Content Security Policy (CSP) reporting to surface inline script execution attempts.
Monitoring Recommendations
- Monitor WordPress REST API endpoints used for block editing for anomalous payload sizes or script-like content.
- Alert on new or modified administrator accounts created outside normal change windows.
- Track plugin version inventory to confirm all WordPress sites are running patched builds.
How to Mitigate CVE-2026-108168
Immediate Actions Required
- Update the Custom Query Blocks plugin to a version later than 5.6.0 once the vendor publishes a fix.
- Audit all content created or edited by low-privilege users since the plugin was installed for malicious block configurations.
- Rotate administrator credentials and invalidate active sessions if suspicious activity is identified.
Patch Information
At publication, versions through 5.6.0 are affected. Monitor the Patchstack advisory and the plugin's WordPress.org page for updated releases that remediate the XSS flaw.
Workarounds
- Deactivate and remove the Custom Query Blocks plugin until a patched version is available.
- Restrict content creation permissions so only trusted administrator or editor accounts can insert Custom Query Blocks.
- Deploy a web application firewall rule to block requests containing script tags or JavaScript event handlers submitted to the block editor REST API.
- Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of stored XSS payloads.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

