# GeoDirectory – WP Business Directory Plugin and Classified Listings Directory <= 2.8.203 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'login_msg' Shortcode Attribute

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

## Description

The GeoDirectory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'login_msg' attribute of the gd_add_listing shortcode in all versions up to, and including, 2.8.203. This is due to insufficient output escaping of the attribute in the notice shown to logged-out visitors. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that execute whenever a logged-out user accesses an injected page.

## References

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

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

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.
