Vulnerability in GeoDirectory – WP Business Directory Plugin and Classified Listings Directory — CVE-2026-135659
What to do now
Update GeoDirectory – WP Business Directory Plugin and Classified Listings Directory to 2.8.208 or later.
Affected versions
- Everything up to and including 2.8.207
Affected: GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (plugin, geodirectory)
What the vulnerability is
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'opentime (any custom field whose field_type has no geodir_custom_field_value_{type} filter — e.g. time, file, images)' parameter in all versions up to, and including, 2.8.207 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The raw payload is returned unescaped by geodir_cf_time() only when the listing is rendered with the value-raw display mode (e.g., via the [gd_post_meta show="value-raw"] shortcode or block), which is required for script execution.
Sources
- https://github.com/AyeCode/geodirectory/archive/refs/heads/master.zip
- https://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/class-geodir-ajax.php#L830
- https://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/class-geodir-post-data.php#L1732
- https://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/class-geodir-post-data.php#L492
- https://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/custom-fields/output-functions.php#L585
- https://plugins.trac.wordpress.org/changeset/3820721/geodirectory/trunk/includes/custom-fields/output-functions.php