CVE-2026-120082: GeoDirectory <= 2.8.200 - Unauthenticated Stored Cross-Site Scripting via Nested '[gd_dynamic_content]' Shortcode in post_content
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'postcontent' parameter in all versions up to, and including, 2.8.200 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The nested shortcode payload ([gddynamicconten[gdtags]t ...]) defeats the plugin's geodirstripshortcodes() guard because WordPress's stripshortcodes() performs only a single pass over registered tags, and HTML-entity-encoded attributes in the resulting shortcode survive wpksespost() because kses inspects HTML tags rather than shortcode attribute values.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An unauthenticated attacker can exploit it by supplying a crafted nested gd_dynamic_content shortcode payload through the post_content parameter. No authenticated WordPress account is required according to the available data.
Which installations are affected?
GeoDirectory versions up to and including 2.8.200 are affected. The available data does not identify a configuration change that disables the vulnerable processing.
What happens after a malicious payload is stored?
Arbitrary web scripts can execute in the browser of any user who accesses the injected page. The payload is stored in page content rather than requiring the attacker to be present when a victim views it.
How can I look for possible exploitation?
Review page post_content for suspicious or malformed nested shortcode text resembling [gd_dynamic_conten[gd_tags]t ...], especially shortcode attributes containing HTML-entity-encoded values. The described bypass relies on nested shortcode parsing and encoded attributes surviving the plugin's sanitization path.