CVE-2026-126701 in Themify Builder Plugininfo

Summary

by MITRE • 11/21/2026

The Themify Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data' parameter in all versions up to, and including, 7.8.5 due to insufficient input sanitization and output escaping. 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. The wp_kses_post filter applied during save is ineffective against tagless attribute-breakout payloads, as it only strips disallowed HTML tags and cannot neutralize a payload containing no '<' characters; the element_id is then echoed without esc_attr() inside a data-id HTML attribute in template-tab.php.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/21/2026

The Themify Builder plugin for WordPress contains a critical security vulnerability affecting all versions up to and including 7.8.5, characterized by insufficient input sanitization and output escaping mechanisms within the 'data' parameter handling logic. This flaw allows authenticated attackers possessing contributor-level access or higher privileges to inject arbitrary web scripts into pages managed by the builder. The core of the issue lies in how user-supplied data is processed during storage and subsequently rendered on the frontend, creating a pathway for persistent malicious code execution that persists across multiple page views until the vulnerability is patched or the content is manually corrected.

The technical root cause involves a specific failure in the application's defense-in-depth strategy regarding HTML attribute handling. While the plugin employs the wp_kses_post filter during the save operation to sanitize input, this function operates by stripping disallowed HTML tags rather than performing comprehensive encoding of attribute values. Consequently, it remains ineffective against tagless payloads that do not contain less-than characters, which are typically used to break out of context in XSS attacks. The attacker can craft a payload using only alphanumeric characters and standard punctuation to bypass these filters entirely. When the content is later rendered, the element_id value is echoed directly into a data-id HTML attribute within template-tab.php without being passed through esc_attr(). This lack of proper escaping allows the injected script to execute in the context of any user who views the compromised page, effectively turning stored cross-site scripting into a persistent threat vector.

From an operational impact perspective, this vulnerability poses significant risks to website integrity and user security. Because the attack requires only contributor-level access rather than administrator privileges, it lowers the barrier for exploitation significantly within environments where multiple users have editing rights. Successful exploitation enables attackers to steal session cookies, hijack administrative sessions if they can trick a higher-privileged user into viewing the payload, or deface the website by injecting malicious content that appears legitimate. The persistent nature of stored XSS means that every visitor to the affected page becomes a potential victim, amplifying the scope of damage far beyond what is possible with reflected cross-site scripting vulnerabilities.

This vulnerability aligns closely with CWE-79, which classifies improper neutralization of input during web page generation as Cross-site Scripting. Furthermore, in terms of tactical mapping within the MITRE ATT&CK framework for enterprise security, this behavior corresponds to T1059.007, representing JavaScript execution via browser-side scripting. The attack chain involves initial access through valid credentials with elevated privileges, followed by persistence mechanisms that embed malicious code into legitimate content structures. Defense in depth is compromised here because the sanitization layer fails to account for attribute context boundaries, highlighting a common oversight in web application development where input validation does not match output encoding requirements.

To mitigate this vulnerability, immediate action should be taken to upgrade the Themify Builder plugin to version 7.8.6 or later, which addresses these specific escaping deficiencies. For organizations unable to patch immediately due to compatibility concerns with other plugins or custom code modifications, a temporary workaround involves restricting contributor-level access to trusted individuals only and implementing strict content review processes before publication. Additionally, deploying a Web Application Firewall that can detect and block tagless XSS payloads may provide an additional layer of protection by identifying anomalous patterns in HTTP requests targeting the data parameter. Long-term remediation requires developers to ensure that all dynamic output is passed through appropriate escaping functions like esc_attr() when inserted into HTML attributes, regardless of prior sanitization steps, thereby ensuring context-aware encoding prevents script injection even if input filters are bypassed.

Responsible

Wordfence

Reservation

11/11/2026

Disclosure

11/21/2026

Moderation

accepted

CPE

ready

EPSS

0.00443

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!