# GeoDirectory <= 2.8.197 - Authenticated (Subscriber+) Server-Side Request Forgery via Listing File Field URLs

- **ID:** WPSEC-2026-1852
- **Plugin:** GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (`geodirectory`), https://wordpress.org/plugins/geodirectory/
- **Affected versions:** all versions before 2.8.198
- **Fixed in:** 2.8.198 (Update to 2.8.198 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-918
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/geodirectory
- **Fix released:** 2026-10-27
- **Published:** 2026-10-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1852/

## Description

The GeoDirectory plugin for WordPress is vulnerable to Server-Side Request Forgery via external URLs submitted in listing image and file fields in all versions up to, and including, 2.8.197, due to the GeoDir_Media::download_url() function checking only the first host with geodir_is_safe_host() and then fetching the URL with wp_remote_get(), which follows HTTP redirects without checking where they lead. This makes it possible for authenticated attackers, with subscriber-level access and above, to make web requests to arbitrary locations from the web application, including loopback and internal network addresses, by submitting a URL that redirects to them.

## References

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

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

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.
