CVE-2026-137041 in E2Pdf Plugininfo

Summary

by MITRE • 11/27/2026

The E2Pdf – Export Pdf Tool for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'your-name (or any CF7 field referenced in the action's error_message/condition)' parameter in all versions up to, and including, 2.00.05 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires a typical deployment where an E2Pdf action with a 'PDF Access By URL' error message references a submitted Contact Form 7 field, as the payload is seeded via a single unauthenticated CF7 submission and triggered by any visitor who opens the resulting shareable download URL.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in the E2Pdf – Export Pdf Tool for WordPress plugin represents a significant security risk due to its potential for Stored Cross-Site Scripting, commonly referred to as XSS. This flaw exists within all versions of the plugin up through and including version 2.00.05. The root cause lies in insufficient input sanitization and output escaping mechanisms when handling specific parameters associated with Contact Form 7 fields. Specifically, the vulnerability affects the 'your-name' parameter or any other field from a Contact Form 7 form that is referenced within an E2Pdf action's error message or condition logic. Because the plugin fails to properly validate or encode user-supplied data before storing it and subsequently rendering it in web pages, attackers can inject malicious JavaScript code into the application state.

From a technical perspective, this vulnerability allows unauthenticated actors to execute arbitrary web scripts within the context of any victim's browser session. The exploitation chain begins with an attacker submitting a Contact Form 7 form containing a crafted payload designed to exploit the lack of sanitization in the error message handling logic. Once submitted, this malicious content is stored on the server side as part of the plugin’s configuration or state management for that specific PDF export action. When any user subsequently accesses the shareable download URL generated by the E2Pdf tool, the application retrieves and renders the stored payload without proper encoding. This results in the immediate execution of the injected script within the victim's browser environment, effectively compromising the integrity and confidentiality of the web session.

The operational impact of this vulnerability is severe because it enables persistent attacks that do not require direct interaction with a vulnerable administrative interface for each attack instance. Instead, exploitation requires only a typical deployment configuration where an E2Pdf action includes a PDF Access By URL error message that references a submitted Contact Form 7 field. This design choice inadvertently creates a vector through which unauthenticated users can seed malicious content via standard form submissions. Any visitor who opens the resulting shareable download link becomes a potential victim, as their browser will execute the injected scripts automatically. This capability allows attackers to perform session hijacking, defacement of web pages, redirection to phishing sites, or theft of sensitive information such as cookies and authentication tokens belonging to site administrators or other privileged users.

In terms of industry standards classification, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting. The attack vector corresponds to ATT&CK technique T1059, specifically the execution of scripts within a browser environment, and falls under the broader category of client-side code injection attacks. The persistence mechanism leverages stored XSS principles where malicious content is saved on the target server rather than being delivered solely through external links or forms that are processed immediately without storage.

Mitigation strategies must focus on addressing both input validation and output encoding deficiencies within the plugin's architecture. Developers should implement strict allow-listing for permitted characters in form fields intended to be displayed in error messages, ensuring that only expected alphanumeric data is accepted. Furthermore, all dynamic content rendered from user-supplied sources must undergo rigorous context-aware escaping before being inserted into HTML structures. For site administrators currently running affected versions, immediate updates to the latest patched version of E2Pdf are essential. In cases where updating is not immediately feasible, implementing Web Application Firewall rules that detect and block common XSS payloads in form submissions can provide a temporary layer of defense against exploitation attempts until the software patch is applied.

Responsible

Wordfence

Reservation

11/25/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00424

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!