# GeoDirectory – WP Business Directory Plugin and Classified Listings Directory <= 2.8.206 - Authenticated (Subscriber+) DOM-Based Stored Cross-Site Scripting via Business Hours Display Script

- **ID:** WPSEC-2026-3504
- **Plugin:** GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (`geodirectory`), https://wordpress.org/plugins/geodirectory/
- **Affected versions:** all versions before 2.8.207
- **Fixed in:** 2.8.207 (Update to 2.8.207 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-19)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/geodirectory
- **Fix released:** 2026-11-18
- **Published:** 2026-11-19
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3504/

## Description

The GeoDirectory plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via the front-end business hours display script in all versions up to, and including, 2.8.206. This is due to the script reading the day label of any element marked up as a business-hours block with jQuery's .text(), which decodes HTML entities, and inserting the result into the page with .html() without escaping. Listing content and HTML fields are filtered with wp_kses, which keeps class and data-* attributes. As a result, a fake business-hours block with an entity-encoded payload survives sanitization. This makes it possible for authenticated attackers with subscriber-level access and above who can submit listings, as well as contributors through regular post content, to inject arbitrary web scripts that execute whenever a user views the affected page.

## References

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

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

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.
