# Easy Property Listings <= 3.5.28 - Authenticated (Contributor+) SQL Injection via 'post_type' Shortcode Attribute

- **ID:** WPSEC-2026-2957
- **Plugin:** Easy Property Listings (`easy-property-listings`), https://wordpress.org/plugins/easy-property-listings/
- **Affected versions:** from 3.2 before 3.5.29
- **Fixed in:** 3.5.29 (Update to 3.5.29 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 Low (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/easy-property-listings
- **Fix released:** 2026-11-10
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2957/

## Description

The Easy Property Listings plugin for WordPress is vulnerable to SQL Injection via the 'post_type' attribute of the [listing_search] shortcode in all versions up to, and including, 3.5.28. This is due to insufficient escaping of the user-supplied value and insufficient preparation of the existing SQL query: the epl_get_unique_post_meta_values() and epl_get_meta_values() functions pass post type values only through sanitize_text_field, which does not remove quotes, and then concatenate them into an IN() clause outside of $wpdb->prepare(). This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL queries to already existing queries that can be used to extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-2957/
- https://plugins.svn.wordpress.org/easy-property-listings/tags/3.5.29/
- https://wordpress.org/plugins/easy-property-listings/

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

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.
