Skip to main content
Vulnerability Database/CVE-2026-95864

CVE-2026-95864: Themify Builder WordPress Plugin XSS Flaw

CVE-2026-95864 is a stored cross-site scripting vulnerability in Themify Builder plugin for WordPress that lets unauthenticated attackers inject malicious scripts. This article covers 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-2026-95864 Overview

The Themify Builder plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability in the css[fonts] parameter. The flaw affects all versions up to and including 7.8.1 and stems from insufficient input sanitization and output escaping [CWE-79]. Unauthenticated attackers can inject arbitrary web scripts that execute when any visitor accesses an injected page. The nonce guarding the vulnerable endpoint is embedded in plain text within the front-end page markup, reducing the control to a CSRF token rather than an authentication barrier.

Critical Impact

Unauthenticated attackers can persist malicious JavaScript on WordPress pages, enabling session theft, administrative account takeover, and site-wide defacement.

Affected Products

  • Themify Builder plugin for WordPress — all versions through 7.8.1
  • WordPress sites with the plugin active and publicly accessible
  • Any page rendered by Themify Builder exposing the enqueue endpoint

Discovery Timeline

  • 2026-09-25 - CVE-2026-95864 published to the National Vulnerability Database (NVD)
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-95864

Vulnerability Analysis

The vulnerability resides in the Themify Builder stylesheet generation path. The plugin accepts the css[fonts] parameter and incorporates its value into generated stylesheet output without adequate sanitization or escaping. Because the output is persisted and rendered on pages served to all visitors, injected payloads execute in the browser context of every user who loads an affected page. The CWE-79 classification reflects the improper neutralization of input during web page generation.

Exploitation requires only a nonce value, which the plugin exposes in plain sight within the front-end page markup. Any unauthenticated visitor can scrape this nonce and submit a request to the vulnerable endpoint. This design converts what should be an authenticated action into a workflow reachable by anyone on the network.

Root Cause

The root cause is twofold: input to the css[fonts] parameter is not validated or sanitized before being stored, and the stored data is not escaped on output when written into the generated stylesheet or related markup. The nonce-only access control compounds the issue because the nonce is public, offering no meaningful authorization boundary. Relevant code paths are documented in class-themify-builder-stylesheet.php at lines 160, 317, and 514, and in class-themify-enqueue.php at line 1757.

Attack Vector

An unauthenticated attacker retrieves the public nonce from any front-end page rendered by the plugin. The attacker then sends a crafted request to the Themify enqueue endpoint containing a malicious payload in the css[fonts] parameter. The payload is stored and injected into the stylesheet or page markup served to subsequent visitors. When a victim loads the affected page, the script executes in their browser session, enabling cookie theft, administrator session hijacking, forced actions, or redirects to attacker-controlled infrastructure.

Technical details and the vendor fix are documented in the Themify Builder Changeset and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2026-95864

Indicators of Compromise

  • Unexpected <script> tags, javascript: URIs, or HTML event handlers appearing in generated Themify stylesheet output or cached page markup.
  • POST or AJAX requests to Themify enqueue endpoints with suspicious payloads in the css[fonts] parameter.
  • Outbound requests from visitor browsers to unknown third-party domains after loading Themify-rendered pages.
  • Administrator session anomalies such as unexpected logins or unauthorized plugin and user changes.

Detection Strategies

  • Audit stored Themify configuration data and generated CSS files for HTML, script tags, or encoded JavaScript in font-related fields.
  • Deploy web application firewall rules that inspect requests to Themify endpoints and block payloads containing script syntax in css[fonts].
  • Review WordPress access logs for high-volume POST traffic to the Themify enqueue endpoint from single IPs.

Monitoring Recommendations

  • Monitor WordPress wp-content directories for unexpected modifications to cached stylesheet files generated by the plugin.
  • Enable Content Security Policy (CSP) reporting to capture script execution from unexpected sources on pages served by the plugin.
  • Alert on new administrator accounts, modified user roles, or plugin installations that follow suspicious traffic to Themify endpoints.

How to Mitigate CVE-2026-95864

Immediate Actions Required

  • Update the Themify Builder plugin to a version newer than 7.8.1 as soon as the vendor publishes a patched release.
  • Temporarily deactivate the Themify Builder plugin on exposed sites if a patched version is not yet available.
  • Rotate administrator passwords and invalidate active sessions on any site suspected of exposure.
  • Review user accounts and installed plugins for unauthorized additions made since the plugin was deployed.

Patch Information

The vendor committed a fix referenced in the Themify Builder changeset at revision 3710320. Site operators should install the patched release and verify the plugin version after upgrade. Confirm that generated stylesheets no longer contain unsanitized font parameter content.

Workarounds

  • Restrict access to Themify enqueue endpoints at the web server or WAF layer until the plugin is updated.
  • Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins.
  • Purge all cached stylesheet output generated by the plugin after patching to remove any persisted payloads.
bash
# Example WAF rule concept to block script payloads in css[fonts]
# Adapt syntax to your WAF (ModSecurity, Cloudflare, etc.)
SecRule ARGS:'css[fonts]' "@rx (?i)(<script|javascript:|onerror=|onload=)" \
    "id:1009864,phase:2,deny,status:403,msg:'Themify Builder css[fonts] XSS attempt (CVE-2026-95864)'"

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.