# Wp Parsidate <= 6.5.2 - Authenticated (Shop Manager+) SQL Injection via 'start_date' and 'end_date' Parameters

- **ID:** WPSEC-2026-4039
- **Plugin:** Parsi Date | بسته فارسی ساز وردپرس و ووکامرس پارسی دیت (`wp-parsidate`), https://wordpress.org/plugins/wp-parsidate/
- **Affected versions:** from 6.1 before 6.6
- **Fixed in:** 6.6 (Update to 6.6 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-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-parsidate
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4039/

## Description

The Parsi Date plugin for WordPress is vulnerable to SQL Injection via the 'start_date' and 'end_date' parameters of the legacy WooCommerce reports in all versions up to, and including, 6.5.2, due to insufficient validation of the user-supplied dates and the lack of a prepared statement. The values are only passed through sanitize_text_field() and the plugin's Jalali-to-Gregorian conversion, which returns any value that is not a date unchanged, and the result is then spliced into the WHERE clause of the WooCommerce order report query. This makes it possible for authenticated attackers with Shop Manager-level access and above to append additional SQL queries to existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-4039/
- https://plugins.svn.wordpress.org/wp-parsidate/tags/6.6/
- https://wordpress.org/plugins/wp-parsidate/

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

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.
