Skip to main content
Vulnerability Database/CVE-2026-107754

CVE-2026-107754: GeoDirectory WordPress Plugin XSS Vulnerability

CVE-2026-107754 is a stored XSS vulnerability in GeoDirectory WordPress plugin allowing authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107754 Overview

CVE-2026-107754 is a Stored Cross-Site Scripting (XSS) vulnerability in the GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress. The flaw affects all versions up to and including 2.8.190. It originates from insufficient input sanitization and output escaping on the post_images parameter, specifically the file_info[2] = title field. Authenticated users with subscriber-level access or higher can inject arbitrary web scripts that execute when any user views an injected page. The weakness is tracked as CWE-79.

Critical Impact

Low-privileged authenticated attackers can persist malicious JavaScript in directory listings, enabling session theft, administrative action hijacking, and drive-by payload delivery to any visitor.

Affected Products

  • GeoDirectory – WP Business Directory Plugin for WordPress (all versions ≤ 2.8.190)
  • Classified Listings Directory plugin component shipped with GeoDirectory
  • WordPress sites exposing the post_images upload field to subscriber accounts

Discovery Timeline

  • 2026-10-14 - CVE-2026-107754 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-107754

Vulnerability Analysis

The GeoDirectory plugin allows users to submit business or classified listings that include image attachments. Each image carries metadata serialized in a file_info structure, where index [2] holds the user-supplied image title. The plugin stores this title and later renders it inside listing pages and map popups without applying contextual output escaping. Because the title traverses JavaScript rendering paths in assets/js/map.js, the payload executes in the browser of every visitor to an affected page. A subscriber account is the only prerequisite, which is trivially obtainable on sites that permit open registration or listing submission.

Root Cause

The root cause is missing sanitization during storage and missing escaping during output of the post_images title field. Media handling in includes/class-geodir-media.php, post data handling in includes/class-geodir-post-data.php, and image utilities in includes/image-functions.php process the attacker-controlled title and pass it to client-side rendering routines in assets/js/map.js without encoding HTML or JavaScript metacharacters.

Attack Vector

An attacker registers or uses an existing subscriber account, submits a listing with an image attachment, and sets the image title to a JavaScript payload embedded in HTML (for example, an event handler on an inline tag). The payload is written to the plugin's post metadata. When any user, including administrators, loads the listing or interacts with the map view, the script runs in the victim's authenticated session. The scope-change rating in the CVSS vector reflects the ability of injected script to act beyond the vulnerable component, including stealing authentication cookies, performing CSRF-style requests, or pivoting to administrative functions. See the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2026-107754

Indicators of Compromise

  • Listings or posts created by subscriber-level accounts containing HTML tags, <script> blocks, or JavaScript event handlers in image title metadata.
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after viewing a GeoDirectory listing page.
  • New administrator accounts, modified user roles, or plugin configuration changes with no corresponding admin login activity.

Detection Strategies

  • Audit the wp_postmeta table for GeoDirectory image metadata containing HTML control characters such as <, >, on event prefixes, or javascript: schemes.
  • Review web server access logs for POST requests to GeoDirectory submission endpoints originating from low-privileged accounts.
  • Enable WordPress audit logging to track image uploads and listing edits performed by subscriber accounts.

Monitoring Recommendations

  • Deploy a Content Security Policy (CSP) that blocks inline scripts and alerts on CSP violations generated by directory pages.
  • Monitor administrator sessions for anomalous actions originating from pages that render GeoDirectory listings.
  • Correlate plugin update events with the GeoDirectory 2.8.190 release line to confirm patched versions are deployed site-wide.

How to Mitigate CVE-2026-107754

Immediate Actions Required

  • Upgrade GeoDirectory to a release later than 2.8.190 as soon as the vendor publishes a fixed version; monitor the GeoDirectory GitHub repository and the WordPress GeoDirectory ChangeSet for the applicable patch.
  • Restrict user registration and require administrator approval for new accounts to limit who can submit listings.
  • Audit existing GeoDirectory listings for suspicious image titles and remove or sanitize entries that contain markup.

Patch Information

All versions through 2.8.190 are affected. Apply the patched release once published by AyeCode and verify by inspecting the plugin version in the WordPress admin console. Review the referenced source files, including assets/js/map.js, includes/class-geodir-media.php, and includes/image-functions.php, after upgrading to confirm the sanitization and escaping fixes are present.

Workarounds

  • Disable public listing submissions until the patch is applied, or restrict the capability to trusted editor-level accounts.
  • Deploy a Web Application Firewall (WAF) rule that blocks HTML control characters in the file_info[2] parameter of GeoDirectory submission requests.
  • Enforce a strict Content Security Policy that disallows inline scripts and unauthorized third-party script sources on pages that render directory content.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.