CVE-2026-127113: GeoDirectory <= 2.8.205 - Unauthenticated Stored Cross-Site Scripting via 'post_content' Parameter via data-lity-target Attribute
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.205 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. Unauthenticated exploitation requires the plugin's "Allow posting without logging in" (postloggedout) option to be enabled; on default installs the vulnerability is exploitable by Subscriber-level users and above.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable the “Allow posting without logging in” option to prevent unauthenticated exploitation.
GeoDirectory – WP Business Directory Plugin and Classified Listings Directory post_logged_out = disabled
Event History
Frequently Asked Questions
Who can exploit this issue in a default installation?
On default installations, an attacker needs a WordPress account with the Subscriber role or higher. No user interaction is required from the attacker.
Can an unauthenticated internet user exploit it?
Yes, if the GeoDirectory “Allow posting without logging in” (post_logged_out) option is enabled. With that option enabled, no WordPress account is required to submit the malicious content.
What must happen for the injected script to execute?
A user must access a page containing the attacker-injected content. The attacker can store arbitrary web scripts through the post_content parameter.
What is the affected version range?
All GeoDirectory versions through and including 2.8.205 are affected.