# Perfect Survey <= 1.6.0 - Authenticated (Subscriber+) SQL Injection via 'filters' Parameter

- **ID:** WPSEC-2026-4209
- **Plugin:** Perfect Survey (`perfect-survey`), https://wordpress.org/plugins/perfect-survey/
- **Affected versions:** all versions before 2.0.0
- **Fixed in:** 2.0.0 (Update to 2.0.0 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/perfect-survey
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4209/

## Description

The perfect-survey plugin for WordPress is vulnerable to SQL Injection via the keys of the 'filters' parameter of the download_csv AJAX action in all versions up to, and including, 1.6.0. This is due to filter field names being passed only through sanitize_text_field() and concatenated directly into the WHERE clause of the statistics query in get_survey_data(), while the action only checks that the user is logged in. This makes it possible for authenticated attackers, with Subscriber-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-4209/
- https://plugins.svn.wordpress.org/perfect-survey/tags/2.0.0/
- https://wordpress.org/plugins/perfect-survey/

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

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.
