# GeoDirectory – WP Business Directory Plugin and Classified Listings Directory <= 2.8.207 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Time and Business Hours Custom Fields

- **ID:** WPSEC-2026-3896
- **Plugin:** GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (`geodirectory`), https://wordpress.org/plugins/geodirectory/
- **Affected versions:** from 2.0.0.82 before 2.8.208
- **Fixed in:** 2.8.208 (Update to 2.8.208 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/geodirectory
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3896/

## Description

The GeoDirectory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via listing custom fields of the time type (and other field types with no sanitize callback) and via array-formatted business hours values in all versions up to, and including, 2.8.207. This is due to the listing save routine storing these values without any sanitization (the time field type had no sanitizer and the business hours sanitizer skipped array input), and the 'value (saved in database)' output of the custom field renderers returning the stored value without escaping. This makes it possible for authenticated attackers with subscriber-level access and above, who can submit or edit listings through the frontend add-listing form, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires that the site displays the affected field with the raw 'value (saved in database)' output, such as through the GD Post Meta widget or shortcode, or the Elementor or Bricks dynamic tags, which use this output by default.

## References

- https://wpsec.com/vuln/WPSEC-2026-3896/
- https://plugins.svn.wordpress.org/geodirectory/tags/2.8.208/
- https://wordpress.org/plugins/geodirectory/

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

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.
