Skip to main content

CVE-2024-8760: Stackable WordPress Plugin CSRF Vulnerability

CVE-2024-8760 is a CSS injection flaw in Stackable Page Builder Gutenberg Blocks plugin for WordPress that enables CSRF attacks via admin nonce exfiltration. This article covers the technical details, affected versions, and mitigation.

Published:

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-2024-8760 Overview

CVE-2024-8760 affects the Stackable – Page Builder Gutenberg Blocks plugin for WordPress through version 3.13.6. The flaw allows unauthenticated attackers to inject untrusted CSS into comment content. Attackers can abuse this CSS injection to exfiltrate sensitive data, including administrator nonces rendered within the page.

Stolen nonces create a window for Cross-Site Request Forgery (CSRF) attacks against the WordPress site. The impact widens when other installed plugins expose AJAX endpoints or lower-privileged actions that lack capability checks. The vulnerability is categorized under CWE-94: Improper Control of Generation of Code.

Critical Impact

Unauthenticated CSS injection enables attribute-based exfiltration of WordPress nonces, enabling CSRF against administrators and privileged users.

Affected Products

  • Stackable – Page Builder Gutenberg Blocks plugin for WordPress
  • All versions up to and including 3.13.6
  • WordPress sites accepting comments where the plugin renders style attributes

Discovery Timeline

  • 2024-10-12 - CVE-2024-8760 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-8760

Vulnerability Analysis

The Stackable plugin fails to sanitize style information embedded in user-submitted comments. Attackers can post comments containing crafted CSS that the plugin renders unchanged in the page output. Because the injection occurs in comment content, authentication is not required to reach the vulnerable code path.

CSS injection sidesteps traditional Cross-Site Scripting (XSS) filters because no JavaScript executes. Instead, attackers rely on CSS attribute selectors and background-image: url() style properties to exfiltrate data to an attacker-controlled host. The technique can read DOM attributes character by character, including hidden input values that contain WordPress nonces.

Root Cause

The root cause is improper neutralization of style directives supplied through comment input. The plugin trusts style-related content submitted by unauthenticated users and renders it into the DOM. WordPress nonces are intended to protect state-changing requests, but once an attacker reads them from the rendered page, they can craft valid CSRF requests until the nonce expires.

Attack Vector

An attacker submits a comment containing crafted CSS rules targeting attribute selectors on sensitive form fields. When an administrator or privileged user views the page containing the malicious comment, the attacker's server receives requests encoding the nonce values character by character. The attacker then replays the harvested nonce against AJAX or admin endpoints within the nonce lifetime, performing actions on behalf of the victim.

No code examples are published for this vulnerability. For technical specifics, review the Wordfence Vulnerability Report and the WordPress Plugin Changeset.

Detection Methods for CVE-2024-8760

Indicators of Compromise

  • Comments containing <style> tags, style= attributes, or CSS keywords such as @import, url(, or attribute selectors like [name^=
  • Outbound HTTP requests from administrator browsers to unfamiliar domains referenced in CSS background-image URLs
  • Unexpected administrative actions on WordPress completed via AJAX endpoints shortly after a privileged user viewed a comment thread

Detection Strategies

  • Audit the wp_comments table for payloads containing CSS attribute selectors, @import directives, or inline url() references pointing to external hosts
  • Inspect page source on posts using Stackable blocks for comment content that renders style information outside expected sanitization
  • Correlate privileged user page views with outbound requests to non-allowlisted domains in web proxy or endpoint telemetry

Monitoring Recommendations

  • Log and alert on WordPress admin-ajax.php and admin-post.php requests that succeed without a corresponding user-initiated workflow
  • Monitor browser-level network activity from administrator workstations for connections to newly observed external hosts
  • Track plugin version inventory across WordPress sites to confirm all installations have been updated beyond 3.13.6

How to Mitigate CVE-2024-8760

Immediate Actions Required

  • Update the Stackable – Page Builder Gutenberg Blocks plugin to a version newer than 3.13.6 on every WordPress site
  • Review and purge any comments awaiting moderation that contain style-related content or external URLs
  • Rotate credentials and invalidate active sessions for any administrator who recently viewed untrusted comment content

Patch Information

The plugin maintainers released a fix in the changeset referenced in the WordPress Plugin Changeset. The patch sanitizes style content in comment rendering paths. Apply the update through the WordPress plugin dashboard or by deploying the fixed release across managed sites.

Workarounds

  • Disable comments on posts and pages that use Stackable blocks until the plugin is updated
  • Require comment moderation for all submissions and reject comments containing CSS directives or external URLs
  • Deploy a Web Application Firewall (WAF) rule to block comment submissions carrying style attributes, @import, or attribute selector syntax
bash
# WordPress CLI example to update the Stackable plugin
wp plugin update stackable-ultimate-gutenberg-blocks
wp plugin list --name=stackable-ultimate-gutenberg-blocks --field=version

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.