CVE-2026-120542 in Enfold Plugin
Summary
by MITRE • 11/26/2026
The theme for WordPress is vulnerable to Stored Cross-Site Scripting via the 'metavalue (via wp-admin/post.php add_meta → post_meta key 'my_field')' parameter in all versions up to, and including, 8.3 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. A Contributor can store a raw script payload in a custom field on their own draft and cause it to execute in an administrator's or editor's authenticated browser session when they preview or publish the post.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The WordPress theme identified as vulnerable is susceptible to Stored Cross-Site Scripting, specifically targeting the metavalue parameter accessed through the wp-admin/post.php interface during meta addition operations involving the post_meta key my_field. This vulnerability exists in all versions up to and including 8.3 due to insufficient input sanitization and a lack of proper output escaping when handling custom field data. The core technical flaw lies in the theme's failure to validate or escape user-supplied content before storing it in the database and subsequently rendering it on public-facing pages without appropriate encoding mechanisms. This allows malicious actors to inject arbitrary JavaScript code that persists within the application's storage layer rather than being transient, thereby creating a persistent threat vector for any subsequent users who view the compromised content.
The operational impact of this vulnerability is significant because it requires only contributor-level access or higher privileges on the WordPress installation, which are relatively common roles assigned to multiple users in collaborative environments. An attacker with these permissions can craft and store a raw script payload within a custom field associated with their own draft posts. When an administrator or editor subsequently previews or publishes this post, the malicious script executes automatically within the privileged user's browser session. This execution occurs under the context of the authenticated administrative account, effectively allowing the low-privileged attacker to escalate their influence and perform actions that should be restricted to high-level administrators.
From a security classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific nature of storing malicious scripts in the database for later execution categorizes it under Stored XSS, where the payload is saved on target servers and delivered to users when they request information from the affected page. In terms of adversary tactics, this behavior corresponds to ATT&CK technique T1059, Command and Scripting Interpreter, specifically through browser-based scripting environments like JavaScript. The exploitation chain involves initial access via valid credentials followed by persistence or privilege escalation depending on the actions performed with the executed script, such as stealing session cookies, performing administrative tasks, or defacing the website.
Mitigation strategies must address both immediate remediation and long-term defensive posture improvements. Administrators should immediately update the WordPress theme to a version newer than 8.3 where this issue has been resolved by developers implementing proper sanitization upon input and escaping on output. For sites unable to upgrade instantly, manual code review of the post_meta handling logic is necessary to ensure that all custom field values are passed through appropriate WordPress functions such as esc_html or wp_kses_post before being rendered in templates. Additionally, enforcing strict role-based access control can limit the number of users with contributor-level permissions who could potentially exploit this flaw. Implementing a Web Application Firewall may also help detect and block attempts to inject script payloads into custom fields by identifying patterns associated with XSS attacks during data submission processes.