Directorist: AI-Powered Business Directory, Listings & Classified Ads <= 8.12.2 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Listing Description

Medium 6.4 CWE-79Fixed in 8.12.3
ID
WPSEC-2026-4410
Plugin
Directorist: AI-Powered Business Directory, Listings & Classified Ads (directorist)
Affected
from 7.3.0 before 8.12.3
Remediation
Update to 8.12.3 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-03
Attack surface
Directorist: AI-Powered Business Directory, Listings & Classified Ads on WPSec AttackSurface
Fix released
Published

Description

The Directorist plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the listing description submitted through the front-end listing form in versions 7.3.0 up to, and including, 8.12.2. This is due to the description being filtered only with wp_kses_post, which permits arbitrary class and data-* attributes. A submitter can add elements that carry the plugin's map and slider widget classes (such as directorist-single-map or directorist-swiper-listing) together with their own widget configuration, and the plugin's front-end JavaScript then processes these elements and inserts configuration values such as the map marker icon into the page as HTML. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in single listing pages that will execute whenever a user accesses an injected page. If the site permits guest listing submission, unauthenticated attackers may also be able to exploit this.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0