GeoDirectory <= 2.8.193 - Authenticated (Contributor+) Stored Cross-Site Scripting via Map and Post Badge Shortcode Attributes
- ID
- WPSEC-2026-1387
- Plugin
- GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (geodirectory)
- Affected
- all versions before 2.8.194
- Remediation
- Update to 2.8.194 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-21
- Attack surface
- GeoDirectory on WPSec AttackSurface
- Fix released
- Published
Description
The GeoDirectory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'width' and 'height' attributes of the gd_map shortcode and the 'cta' and 'link' attributes of the gd_post_badge shortcode in all versions up to, and including, 2.8.193. This is due to insufficient input sanitization and output escaping: the map dimensions are echoed into style attributes unescaped, the 'cta' value is placed in an inline onclick handler with only esc_attr(), and the link URL is not checked for unsafe schemes. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
References
- https://wpsec.com/vuln/WPSEC-2026-1387/
- https://plugins.svn.wordpress.org/geodirectory/tags/2.8.194/
- https://wordpress.org/plugins/geodirectory/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS