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-2025-3860 Overview
The CarDealerPress plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the saleclass parameter. The flaw affects all plugin versions up to and including 6.8.2505.00. Insufficient input sanitization and output escaping allow authenticated attackers with Contributor-level access or higher to inject arbitrary JavaScript into pages. Injected scripts execute in the browser of any user who views the affected page. The issue originates in the sc_inventory_counter.php shortcode template, where the saleclass value is rendered without proper escaping.
Critical Impact
Authenticated contributors can persist malicious JavaScript on WordPress pages, enabling session theft, administrator account takeover, and arbitrary actions in the context of visiting users.
Affected Products
- WordPress CarDealerPress plugin versions ≤ 6.8.2505.00
- WordPress sites running vulnerable CarDealerPress installations with Contributor-level user registration enabled
- Any downstream dealership sites embedding the sc_inventory_counter shortcode
Discovery Timeline
- 2025-05-07 - CVE-2025-3860 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-3860
Vulnerability Analysis
The vulnerability is a Stored Cross-Site Scripting flaw rooted in the plugin's shortcode rendering logic. The saleclass parameter accepted by the sc_inventory_counter shortcode is written into the generated HTML without passing through a WordPress escaping function such as esc_attr() or esc_html(). An authenticated user with Contributor privileges can embed the shortcode in a post or page, supplying an attribute value that breaks out of the surrounding HTML context and injects script content. Because the payload is stored in the WordPress database and rendered on every page load, each visitor executes the attacker-controlled JavaScript in their browser session. The scope change in the CVSS vector reflects that injected scripts affect users beyond the attacker's own authorization boundary, including administrators who review submitted content.
Root Cause
The root cause is missing output escaping in the shortcode template at templates/shortcode/sc_inventory_counter.php around line 34. The plugin concatenates user-controlled attribute data into HTML markup without sanitization. WordPress provides context-aware escaping functions, but the vulnerable code path omits them. The flaw aligns with CWE-79: Improper Neutralization of Input During Web Page Generation.
Attack Vector
Exploitation requires an authenticated session with at least Contributor-level permissions. The attacker inserts the vulnerable shortcode into post content, setting saleclass to a crafted value containing HTML attribute-breaking characters and a JavaScript payload. When an editor, administrator, or site visitor renders the page, the browser parses and executes the injected script. Typical outcomes include authentication cookie theft, forced administrative actions through the WordPress REST API, and persistent backdoor creation via new administrator accounts.
The vulnerability mechanism is described in the WordPress Shortcode Template source and the Wordfence Vulnerability Report.
Detection Methods for CVE-2025-3860
Indicators of Compromise
- Post or page content containing the sc_inventory_counter shortcode with unusual saleclass attribute values that include characters such as ", <, >, onerror=, or javascript:
- Unexpected <script> tags, inline event handlers, or external script references in rendered page HTML served from WordPress
- New or recently elevated administrator accounts created shortly after a Contributor user submitted content
Detection Strategies
- Query the wp_posts table for post_content entries containing sc_inventory_counter combined with suspicious attribute payloads
- Monitor web server access logs for outbound requests to attacker-controlled domains originating from authenticated administrator sessions
- Deploy a web application firewall rule to flag shortcode attribute values containing HTML or JavaScript syntax
Monitoring Recommendations
- Alert on content edits by Contributor-level accounts that introduce shortcodes referencing CarDealerPress templates
- Track changes to the WordPress user table, specifically role promotions to Editor or Administrator
- Review browser Content Security Policy (CSP) violation reports for blocked inline scripts on pages that use the plugin
How to Mitigate CVE-2025-3860
Immediate Actions Required
- Update the CarDealerPress plugin to a version later than 6.8.2505.00 as soon as a fixed release is available from the vendor
- Audit all existing posts and pages for the sc_inventory_counter shortcode and remove any instances containing unexpected saleclass attribute content
- Review Contributor-level and higher user accounts, removing any that are unrecognized or inactive
Patch Information
Refer to the WordPress Changeset History and the WordPress Plugin Developer Info page for the latest patched release. Confirm that the installed plugin version is higher than 6.8.2505.00 after updating.
Workarounds
- Restrict Contributor and higher permissions to trusted users only, and disable open user registration where feasible
- Deploy a web application firewall rule that blocks requests containing HTML or JavaScript syntax in shortcode attributes
- Implement a strict Content Security Policy that disallows inline scripts and limits script sources to approved domains
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

