# E2Pdf – Export Pdf Tool for WordPress <= 1.32.57 - Unauthenticated Stored Cross-Site Scripting via Export Dataset Labels

- **ID:** WPSEC-2026-1185
- **Plugin:** E2Pdf – Export Pdf Tool for WordPress (`e2pdf`), https://wordpress.org/plugins/e2pdf/
- **Affected versions:** all versions before 1.32.58
- **Fixed in:** 1.32.58 (Update to 1.32.58 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-10-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/e2pdf
- **Fix released:** 2026-10-16
- **Published:** 2026-10-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1185/

## Description

The E2Pdf plugin for WordPress is vulnerable to Stored Cross-Site Scripting via dataset labels on the admin Export and Bulk Export pages in all versions up to, and including, 1.32.57. This is due to the backend JavaScript inserting dataset labels into the page with jQuery .html() and innerHTML, and rebuilding the searchable dataset dropdown from each option's decoded text with innerHTML, instead of inserting them as text. Dataset labels are built from the template's dataset title, which can contain values from form entries, or from post titles by default. This makes it possible for unauthenticated attackers to inject arbitrary web scripts through a front-end form entry whose field values appear in the dataset title. The scripts execute in an administrator's browser when they load the template's datasets on the export page. Authenticated users, such as contributors, can do the same through post titles.

## References

- https://wpsec.com/vuln/WPSEC-2026-1185/
- https://plugins.svn.wordpress.org/e2pdf/tags/1.32.58/
- https://wordpress.org/plugins/e2pdf/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1185/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
