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-0845 Overview
The DesignThemes Core Features plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 4.8. The flaw originates in shortcode handling where user-supplied attributes are neither sanitized on input nor escaped on output. Authenticated users with contributor-level permissions or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who views the affected page, enabling session theft, account takeover, and defacement.
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes in every visitor's browser, including administrators, enabling session hijacking and privilege escalation workflows.
Affected Products
- DesignThemes Core Features plugin for WordPress, versions up to and including 4.8
- WordPress sites bundling the LMS Learning Management System theme that ships this plugin
- Any site where contributor-level accounts can author shortcode content
Discovery Timeline
- 2025-03-25 - CVE-2025-0845 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-0845
Vulnerability Analysis
The vulnerability is a Stored Cross-Site Scripting flaw classified under CWE-79. It resides in the shortcode processing logic of the DesignThemes Core Features plugin. The plugin accepts attribute values from authenticated users and renders them directly into page HTML. Because the output is persisted in post content, the payload runs on every subsequent page load.
Stored XSS in WordPress is particularly impactful because administrators routinely preview or edit contributor submissions. A payload crafted by a low-privileged contributor runs in the administrator's authenticated session when the page is viewed. Attackers can leverage this to create new administrative accounts, exfiltrate nonces, or pivot into plugin-driven remote code execution paths.
Root Cause
The root cause is insufficient input sanitization and missing output escaping on shortcode attributes. The plugin does not apply WordPress sanitization helpers such as sanitize_text_field() on incoming attribute values. It also fails to escape values with esc_attr() or esc_html() before echoing them into HTML attributes or element bodies. The result is that attribute payloads containing HTML tags, event handlers, or <script> elements are preserved verbatim.
Attack Vector
Exploitation requires an authenticated session with contributor privileges or higher. The attacker inserts a malicious shortcode into a post or page they are authorized to edit. The payload is embedded within a vulnerable shortcode attribute, for example a title, class, or URL parameter. Once the content is saved and later rendered to any visitor, the injected JavaScript executes in that visitor's browser context under the site's origin. Refer to the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-0845
Indicators of Compromise
- Shortcode attribute values in wp_posts.post_content containing <script>, onerror=, onload=, or javascript: strings
- Unexpected administrative users created shortly after a contributor published or updated content
- Outbound HTTP requests from editor or front-end sessions to attacker-controlled domains
- WordPress admin notices or dashboard widgets rendering unexpected markup
Detection Strategies
- Scan post and page content for shortcodes containing HTML event handlers or script tags in attribute values
- Review WordPress audit logs for contributor accounts publishing content immediately followed by administrator session anomalies
- Monitor browser Content Security Policy (CSP) violation reports for inline script executions on content pages
Monitoring Recommendations
- Enable WordPress activity logging to track shortcode-containing post edits by non-administrator roles
- Alert on creation of new administrator accounts or role elevations following contributor content changes
- Inspect web server access logs for unusual requests to wp-admin/admin-ajax.php originating from editor sessions
How to Mitigate CVE-2025-0845
Immediate Actions Required
- Update the DesignThemes Core Features plugin to a version later than 4.8 as soon as a patched release is available from the vendor
- Audit all contributor, author, and editor accounts and remove or suspend any that are inactive or unexpected
- Review existing posts and pages for malicious shortcode attributes and remove injected payloads before republishing
Patch Information
At the time of publication, the enriched CVE record does not list a vendor-confirmed patched version. Site owners should monitor the Wordfence Vulnerability Report and the ThemeForest LMS Theme product page for update notifications and apply fixes immediately upon release.
Workarounds
- Restrict contributor and author roles to trusted users only until the plugin is patched
- Deploy a web application firewall (WAF) rule to block shortcode attributes containing <script>, on*=, or javascript: patterns
- Implement a strict Content Security Policy that disallows inline scripts on front-end pages
- Temporarily disable the DesignThemes Core Features plugin if the affected shortcodes are not business-critical
# Configuration example: restrict shortcode editing capabilities for contributors
wp cap remove contributor unfiltered_html
wp cap remove author unfiltered_html
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

