# GeoDirectory – WP Business Directory Plugin and Classified Listings Directory <= 2.8.205 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Lightbox 'data-lity-target' and 'data-lity-options' Attributes

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

## Description

The GeoDirectory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the lightbox (lity) 'data-lity-target', 'data-lity' and 'data-lity-options' HTML attributes in listing content and HTML fields in all versions up to, and including, 2.8.205. This is due to insufficient server-side sanitization of these attributes and unsafe handling in the bundled lightbox script. The script reads the target from the clicked element and passes it to jQuery, which parses HTML-shaped values as HTML. It also accepts options from the element that can replace the lightbox template, and it inserts image and iframe URLs into HTML without escaping. This makes it possible for authenticated attackers with subscriber-level access and above, who can submit listings through the front-end form, to inject arbitrary web scripts in listing pages. The scripts run when a user clicks the injected element and the site uses the legacy design style, where the lightbox script loads on the front end.

## References

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

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

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.
