# WP All Export <= 1.6.0 - Remote Code Execution via SQL Query Field Values

- **ID:** WPSEC-2026-4235
- **Plugin:** WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel (`wp-all-export`), https://wordpress.org/plugins/wp-all-export/
- **Affected versions:** from 1.0.0 before 1.7.0
- **Fixed in:** 1.7.0 (Update to 1.7.0 or later.)
- **Severity:** High 7.5 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-all-export
- **Fix released:** 2026-11-28
- **Published:** 2026-11-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4235/

## Description

The WP All Export plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.6.0 due to the value returned by an export's SQL Query field being inserted into the PHP code of the field's PHP function before that code is evaluated. This makes it possible for attackers who can place content into the data such a field reads, which depending on the query can include content submitted by unauthenticated visitors, to execute arbitrary code on the server. Exploitation requires an administrator to have set up an SQL Query field with a PHP function and to run the export.

## References

- https://wpsec.com/vuln/WPSEC-2026-4235/
- https://plugins.svn.wordpress.org/wp-all-export/tags/1.7.0/
- https://wordpress.org/plugins/wp-all-export/

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

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.
