Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-4891: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates

0
Medium
VulnerabilityCVE-2024-4891cvecve-2024-4891cwe-79
Published: Sat May 18 2024 (05/18/2024, 04:30:53 UTC)
Source: CVE Database V5
Vendor/Project: wpdevteam
Product: Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates

Description

CVE-2024-4891 is a stored cross-site scripting (XSS) vulnerability in the Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates WordPress plugin. It affects all versions up to 4. 5. 12 and allows authenticated users with contributor-level permissions or higher to inject malicious scripts via the 'tagName' parameter. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions. The vulnerability arises from insufficient input sanitization and output escaping. Exploitation does not require user interaction but does require authentication with contributor or higher privileges. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity and no user interaction. No known exploits are currently reported in the wild.

AI-Powered Analysis

AILast updated: 02/26/2026, 00:57:29 UTC

Technical Analysis

CVE-2024-4891 is a stored cross-site scripting vulnerability identified in the Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates plugin for WordPress, affecting all versions up to and including 4.5.12. The vulnerability stems from improper neutralization of input during web page generation, specifically through the 'tagName' parameter. Authenticated attackers with contributor-level permissions or higher can inject arbitrary JavaScript code that is stored persistently within the plugin's data. When any user accesses a page containing the injected script, the malicious code executes in their browser context. This can lead to a range of attacks including session hijacking, privilege escalation, defacement, or unauthorized actions performed on behalf of the victim. The root cause is insufficient input validation and output escaping, allowing malicious payloads to be embedded in page content. The vulnerability does not require user interaction beyond visiting the compromised page but does require authentication with contributor or higher privileges, which limits the attack surface to some extent. The CVSS v3.1 score of 6.4 reflects a medium severity, with network attack vector, low attack complexity, privileges required, no user interaction, and a scope change due to potential impact on other users. No public exploits have been reported yet, but the vulnerability is publicly disclosed and should be addressed promptly. The plugin is widely used in WordPress environments, increasing the potential impact. Mitigation involves updating the plugin once a patch is released or applying strict input validation and output encoding controls to the 'tagName' parameter to prevent script injection.

Potential Impact

The impact of CVE-2024-4891 is significant for organizations using the Essential Blocks plugin in WordPress environments. Successful exploitation allows an attacker with contributor-level access to inject persistent malicious scripts that execute in the browsers of any users viewing the affected pages. This can compromise user sessions, steal sensitive information such as authentication cookies, perform unauthorized actions on behalf of users, or deface websites. Since WordPress powers a large portion of websites globally, including many business, government, and e-commerce sites, the vulnerability could lead to reputational damage, data breaches, and loss of user trust. The requirement for contributor-level permissions reduces the risk from anonymous attackers but insider threats or compromised accounts can still exploit this vulnerability. The scope of impact extends beyond the initial attacker, affecting all visitors to the compromised pages, which can include administrators and other privileged users. Although no known exploits are currently in the wild, the public disclosure increases the risk of exploitation attempts. Organizations relying on this plugin should consider the potential for widespread impact, especially those with high-traffic WordPress sites or sensitive user data.

Mitigation Recommendations

To mitigate CVE-2024-4891, organizations should take the following specific actions: 1) Monitor for and apply any official patches or updates released by the plugin vendor immediately once available. 2) In the absence of a patch, restrict contributor-level permissions to trusted users only, minimizing the risk of malicious script injection. 3) Implement Web Application Firewall (WAF) rules that detect and block suspicious script injection attempts targeting the 'tagName' parameter or other plugin inputs. 4) Conduct a thorough audit of existing pages created with the plugin to identify and remove any injected malicious scripts. 5) Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on affected sites. 6) Educate content contributors about safe input practices and the risks of injecting untrusted content. 7) Consider disabling or replacing the plugin with alternatives that have better security track records if immediate patching is not feasible. 8) Regularly review user roles and permissions to ensure least privilege principles are enforced. These targeted mitigations go beyond generic advice by focusing on the specific vulnerable parameter, user roles, and compensating controls relevant to this vulnerability.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-05-15T00:10:22.944Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6b98b7ef31ef0b557099

Added to database: 2/25/2026, 9:37:28 PM

Last enriched: 2/26/2026, 12:57:29 AM

Last updated: 2/26/2026, 6:25:34 AM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats