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-78087 Overview
CVE-2026-78087 is a Stored Cross-Site Scripting (XSS) vulnerability in the VK Blocks plugin for WordPress. The flaw affects all versions up to and including 1.126.1. It originates in the Group Block linkToPost feature, where the plugin fails to properly sanitize input and escape output. Authenticated users with contributor-level access or above can inject arbitrary web scripts into pages. The scripts execute in the browser of any visitor who accesses the affected page, enabling session theft, redirection, and arbitrary actions in the context of other authenticated users.
Critical Impact
Contributor-level attackers can inject persistent JavaScript that executes against any site visitor, including administrators, enabling account takeover and content tampering.
Affected Products
- VK Blocks plugin for WordPress — all versions up to and including 1.126.1
- VK Blocks Pro variants that share the same linkToPost code path
- WordPress sites allowing contributor-level or higher registration with VK Blocks installed
Discovery Timeline
- 2026-10-15 - CVE-2026-78087 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-78087
Vulnerability Analysis
The vulnerability is a Stored Cross-Site Scripting flaw classified under [CWE-79]. It resides in the Group Block linkToPost feature implemented in inc/vk-blocks/view/class-vk-blocks-link-to-post.php. The plugin renders attributes supplied through the Group Block without sufficient sanitization on input or escaping on output. An attacker with contributor privileges can submit a post or page containing a Group Block whose linkToPost attribute carries a crafted payload. The payload is stored in the WordPress database and injected into rendered HTML whenever the page is viewed.
Execution occurs in the browser context of any viewer, including editors and administrators who review submitted content. This enables theft of authentication cookies, forged administrative actions through the WordPress REST API, and arbitrary DOM manipulation on affected pages.
Root Cause
The root cause is missing input sanitization and output escaping in the server-side rendering of the Group Block linkToPost attribute. WordPress provides escaping helpers such as esc_url(), esc_attr(), and wp_kses() for exactly this scenario. Reviewing the WordPress Plugin Change Log shows the fix applied to the class-vk-blocks-link-to-post.php renderer.
Attack Vector
The attack is network-reachable and requires low-privileged authentication. An attacker registers or compromises a contributor account on a WordPress site running VK Blocks. The attacker creates a draft post containing a Group Block with a malicious linkToPost value such as a javascript: URI or an attribute payload breaking out of the enclosing HTML attribute. When an administrator previews the draft or when the post is published and viewed, the stored script executes. Because the scope is Changed, injected scripts affect visitors across the site and can be used to escalate privileges or persist attacker code into theme or plugin files via the WordPress admin interface.
See the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2026-78087
Indicators of Compromise
- Post or page content in wp_posts containing Group Block markup with linkToPost values that include javascript:, data:, onerror=, onload=, or inline <script> fragments.
- New or recently active contributor accounts with elevated publishing activity preceding anomalous frontend behavior.
- Unexpected administrative actions such as plugin installs, user role changes, or theme file edits originating from administrator sessions that viewed contributor-submitted content.
Detection Strategies
- Query the WordPress database for Group Block attributes containing script sinks: SELECT ID, post_title FROM wp_posts WHERE post_content REGEXP 'linkToPost.*(javascript:|<script|on[a-z]+=)'.
- Monitor web server access logs for POST requests to /wp-json/wp/v2/posts and /wp-admin/post.php from contributor accounts, correlated with subsequent page views by administrators.
- Deploy a Content Security Policy report-only header and alert on script-src violations originating from VK Blocks rendered pages.
Monitoring Recommendations
- Audit all contributor and author accounts, including last login, IP address, and recently authored posts.
- Enable WordPress audit logging for post creation, user role changes, and plugin or theme file modifications.
- Alert on outbound requests from administrator browsers to unexpected domains shortly after reviewing contributor-submitted content.
How to Mitigate CVE-2026-78087
Immediate Actions Required
- Update the VK Blocks plugin to the version released after changeset 3664034, which patches the linkToPost renderer.
- Audit existing posts and pages for Group Blocks containing suspicious linkToPost values and purge or sanitize any malicious entries.
- Review contributor, author, and editor accounts; disable or reset credentials for accounts that cannot be verified.
- Rotate WordPress administrator passwords and invalidate active sessions using wp_destroy_all_sessions.
Patch Information
The vendor fix is published in WordPress Plugin Change Log revision 3664034, which updates class-vk-blocks-link-to-post.php to properly sanitize and escape the linkToPost attribute. Site operators should upgrade to the first VK Blocks release that includes this changeset. Confirm the installed version is greater than 1.126.1 via the WordPress plugin management screen.
Workarounds
- Temporarily deactivate the VK Blocks plugin until the patched version can be deployed and verified in staging.
- Restrict contributor-level registration and remove the capability to use the Group Block linkToPost feature via a custom capability filter.
- Deploy a Web Application Firewall rule to block requests containing linkToPost attribute values with javascript:, data:, or inline event handler patterns.
- Enforce a strict Content Security Policy that disallows inline scripts and javascript: URIs on all frontend pages.
# Configuration example: restrict contributor publishing until patched
wp cap remove contributor edit_posts
wp cap remove contributor publish_posts
wp plugin deactivate vk-blocks
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

