CVE-2026-120570 in Enfold Plugininfo

Summary

by MITRE • 11/26/2026

The Enfold theme for WordPress is vulnerable to Stored Cross-Site Scripting via the 'templateName' parameter in all versions up to, and including, 8.3.1 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 AJAX save handler validates a nonce and requires only the edit_posts capability, meaning a Contributor can legitimately obtain the nonce from their own post-edit screen and store a malicious template name that subsequently fires in every privileged user's session.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The Enfold theme for WordPress presents a significant security risk due to a stored cross-site scripting vulnerability affecting all versions up to 8.3.1. This flaw is rooted in insufficient input sanitization and output escaping within the templateName parameter, allowing malicious actors to inject arbitrary web scripts into pages hosted on the affected site. The nature of this vulnerability classifies it under CWE-79, which addresses improper neutralization of input during web page generation, commonly known as cross-site scripting. Unlike reflected XSS where the payload is delivered via a link or form submission that executes immediately upon viewing by an administrator, stored XSS persists within the application's database or file system. This means the malicious code becomes part of the legitimate content served to users, leading to repeated execution every time the compromised page is accessed.

The operational impact of this vulnerability is severe because it requires only contributor-level access and above for exploitation. In typical WordPress role hierarchies, contributors have limited privileges but are often trusted enough to create and edit their own posts without direct administrative oversight. The AJAX save handler responsible for processing template changes validates a nonce, which serves as a security token to prevent cross-site request forgery attacks. However, the validation logic relies solely on the user possessing the edit_posts capability. Since contributors inherently possess this capability within their standard role definition, they can legitimately obtain valid nonces from their own post-edit screens. This design flaw effectively bypasses higher-level access controls that might otherwise restrict template modification to administrators or editors only.

Once an attacker with contributor privileges injects a malicious template name containing JavaScript code, the payload is stored on the server side. When any privileged user, such as an administrator or editor, views a page utilizing this compromised template, their browser executes the injected script within the context of the site's domain. This allows the attacker to perform actions that are normally restricted to higher-privileged users, including stealing session cookies, hijacking administrative sessions, defacing the website, or redirecting visitors to malicious external sites. The persistence of the attack vector means that even if the original contributor account is disabled, the stored payload remains active until manually removed from the theme files or database, creating a long-term security liability for site owners who may not immediately detect the compromise in their template configurations.

From an offensive security perspective, this vulnerability aligns with MITRE ATT&CK technique T1059.007, which covers JavaScript execution as part of client-side code injection. The attack chain involves initial access through legitimate contributor credentials, followed by privilege escalation via stored script injection that impacts all subsequent visitors and administrators. This represents a classic case where role-based access control is undermined by insufficient validation of input data destined for output contexts. The lack of strict type checking or rigorous sanitization on the templateName parameter allows arbitrary code to bypass expected constraints, turning a theme configuration feature into an attack surface.

Mitigation strategies must address both immediate remediation and long-term architectural improvements. Site administrators should immediately update the Enfold theme to version 8.3.2 or later, where this vulnerability has been patched through enhanced input validation and proper output escaping mechanisms. For sites unable to upgrade instantly due to compatibility concerns with other plugins or customizations, manual intervention is required. Administrators must audit existing templates for any suspicious code in the templateName fields and remove any injected scripts. Additionally, implementing a Web Application Firewall can provide an additional layer of defense by filtering out malicious payloads before they reach the application logic, although this should not be relied upon as a primary fix given that stored XSS bypasses many network-level filters once executed on the client side.

To prevent similar vulnerabilities in future development or custom theme modifications, developers must adhere to strict input sanitization and output escaping principles. All user-supplied data, especially when used in dynamic contexts like template selection, should be validated against a whitelist of allowed values rather than relying solely on capability checks for nonces. Output encoding must be applied consistently using functions such as esc_attr or wp_kses_post depending on the context to ensure that special characters are rendered safely and do not execute as code. Furthermore, implementing stricter role-based access controls for theme modification features can limit exposure by restricting template changes exclusively to users with administrator-level privileges, thereby reducing the attack surface available to lower-privileged accounts like contributors.

Responsible

Wordfence

Reservation

11/02/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00274

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!