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-100178 Overview
CVE-2026-100178 is a stored Cross-Site Scripting (XSS) vulnerability in the WPAdverts – Classifieds Plugin for WordPress. The flaw affects all versions up to and including 2.3.4. The plugin fails to properly sanitize input and escape output on the adverts_location parameter. Unauthenticated attackers can inject arbitrary JavaScript that executes in the browser of any user who views an injected classified ad page. The issue is categorized under [CWE-79] Improper Neutralization of Input During Web Page Generation.
Critical Impact
Unauthenticated attackers can store malicious scripts in classified ad listings, enabling session hijacking, administrative action forgery, and redirection of visitors to attacker-controlled infrastructure.
Affected Products
- WPAdverts – Classifieds Plugin for WordPress (all versions through 2.3.4)
- WordPress sites exposing the WPAdverts publish or list templates
- Any site rendering the adverts_location field in advert content
Discovery Timeline
- 2026-10-10 - CVE-2026-100178 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-100178
Vulnerability Analysis
The vulnerability resides in how the WPAdverts plugin processes the adverts_location field submitted when users publish or edit classified listings. The plugin accepts user-controlled location strings without applying sufficient sanitization on input or escaping on output. When the stored value is later rendered through templates such as blocks/list/templates/list-item.php or returned by functions in includes/functions-blocks.php and includes/functions.php, HTML and script content is emitted directly into the DOM. Because advert submission is accessible without authentication, any visitor can submit a listing that persists malicious payloads in the database.
Root Cause
The root cause is a missing escaping routine around the adverts_location value at multiple output sinks. Reviewing the vendor source tree for tag 2.3.4 shows the field being emitted in template contexts without wrapping calls such as esc_html(), esc_attr(), or wp_kses_post(). The publish engine in blocks/publish/class-publish-engine.php accepts the raw value from the submission payload and stores it against the advert record. Downstream rendering trusts this stored content, producing a stored XSS primitive scoped across the site frontend.
Attack Vector
An unauthenticated attacker submits a classified advert through the public WPAdverts publish form and places a JavaScript payload inside the adverts_location field. Once the listing is published or auto-displayed on list templates, every visitor who loads that page executes the attacker's script in their browser session. Because the Scope is Changed (per the vendor CVSS vector), the payload can act on resources beyond the vulnerable component, including WordPress administrative sessions if an administrator views the listing. See the Wordfence Vulnerability Report and the vendor source references for the specific sinks in list-item.php and functions-blocks.php.
No verified public exploit code is available. Technical details can be reconstructed from the referenced vendor source lines and the fix in Changeset 3732587.
Detection Methods for CVE-2026-100178
Indicators of Compromise
- Advert records in the wp_posts or related WPAdverts tables containing <script, javascript:, onerror=, or onload= substrings inside the adverts_location meta field.
- Outbound requests from site visitors to unfamiliar domains originating from pages rendering WPAdverts list or detail templates.
- Unexpected administrator session activity (new users, plugin changes) correlated with recent views of classified listings.
Detection Strategies
- Query the WordPress database for post meta entries with key adverts_location containing HTML tags or event handler attributes.
- Inspect web server access logs for POST requests to WPAdverts publish endpoints that include encoded script tokens in the adverts_location parameter.
- Deploy a web application firewall rule to flag advert submissions whose location field fails to match a geographic string allowlist.
Monitoring Recommendations
- Monitor WordPress audit logs for new or modified WPAdverts listings submitted by anonymous users.
- Alert on Content Security Policy violation reports originating from WPAdverts template URLs.
- Track administrator and editor accounts for session anomalies after any confirmed exposure to malicious listings.
How to Mitigate CVE-2026-100178
Immediate Actions Required
- Upgrade the WPAdverts – Classifieds Plugin to the version containing Changeset 3732587, which addresses the output escaping gap.
- Audit existing advert records for stored script content and purge or sanitize any entries containing executable payloads.
- Rotate credentials and invalidate active sessions for administrators who may have viewed malicious listings.
Patch Information
The vendor fix is tracked in the WPAdverts trunk at Changeset 3732587 and reflected in the updated plugin readme. The patch adds proper escaping around the adverts_location output path in includes/functions-blocks.php. Site operators should install the latest version available on the WordPress plugin repository.
Workarounds
- Temporarily disable the WPAdverts plugin if an immediate upgrade is not possible on exposed sites.
- Restrict advert submission to authenticated users and require moderator approval before new listings are published.
- Deploy a web application firewall signature that blocks <script, on*=, and javascript: patterns in the adverts_location POST parameter.
# Example WAF rule (ModSecurity) blocking script content in adverts_location
SecRule ARGS:adverts_location "@rx (?i)(<script|javascript:|on\w+\s*=)" \
"id:1026100178,phase:2,deny,status:403,log,\
msg:'WPAdverts CVE-2026-100178 XSS attempt in adverts_location'"
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

