# GeoDirectory <= 2.8.193 - Authenticated (Subscriber+) Insecure Direct Object Reference to Listing Attachment Modification

- **ID:** WPSEC-2026-1389
- **Plugin:** GeoDirectory – WP Business Directory Plugin and Classified Listings Directory (`geodirectory`), https://wordpress.org/plugins/geodirectory/
- **Affected versions:** all versions before 2.8.194
- **Fixed in:** 2.8.194 (Update to 2.8.194 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/geodirectory
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1389/

## Description

The GeoDirectory plugin for WordPress is vulnerable to Insecure Direct Object Reference via the attachment ID in listing image and file field values in all versions up to, and including, 2.8.193. This is due to the update_attachment function updating the attachment record named by a user-supplied ID without checking that the attachment belongs to the listing being saved. This makes it possible for authenticated attackers, with Subscriber-level access and above, who can submit listings to change the title, caption, order, featured flag and approval status of images and files attached to other users' listings.

## References

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

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

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.
