# Advanced Order Export For WooCommerce <= 4.1.3 - Authenticated (Shop Manager+) SQL Injection via 'limit' Parameter

- **ID:** WPSEC-2026-1304
- **Plugin:** Advanced Order Export For WooCommerce (`woo-order-export-lite`), https://wordpress.org/plugins/woo-order-export-lite/
- **Affected versions:** all versions before 4.1.4
- **Fixed in:** 4.1.4 (Update to 4.1.4 or later.)
- **Severity:** Medium 4.9 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/woo-order-export-lite
- **Fix released:** 2026-10-19
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1304/

## Description

The Advanced Order Export For WooCommerce plugin for WordPress is vulnerable to SQL Injection via the 'limit' parameter of the export preview in all versions up to, and including, 4.1.3. This is due to insufficient escaping of the user-supplied value, which is only passed through sanitize_text_field(), and a lack of sufficient preparation of the existing SQL query: the value is concatenated into the LIMIT clause of the order-ids query. This makes it possible for authenticated attackers with Shop Manager-level access and above to append additional SQL queries into already existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-1304/
- https://plugins.svn.wordpress.org/woo-order-export-lite/tags/4.1.4/
- https://wordpress.org/plugins/woo-order-export-lite/

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

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.
