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-93535 Overview
CVE-2026-93535 is a stored Cross-Site Scripting (XSS) vulnerability in the Dark Mode – Improve Accessibility with AI Powered Dark Theme plugin for WordPress. The flaw affects all versions up to and including 5.3.17. It stems from insufficient input sanitization and output escaping on the icon_light shortcode attribute. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript that executes in the browser of any user visiting an affected page. The vulnerability is classified under CWE-79.
Critical Impact
Authenticated contributors can store malicious JavaScript on WordPress pages, enabling session hijacking, credential theft, and administrative account takeover when privileged users view the content.
Affected Products
- Dark Mode – Improve Accessibility with AI Powered Dark Theme plugin for WordPress
- All versions through 5.3.17
- WordPress sites allowing Contributor-level user registration
Discovery Timeline
- 2026-10-16 - CVE-2026-93535 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-93535
Vulnerability Analysis
The plugin exposes a shortcode that accepts an icon_light attribute. The plugin writes the attribute value into rendered HTML without applying proper sanitization or output escaping. An authenticated attacker with Contributor privileges or higher can embed the shortcode in a post or page and supply JavaScript payloads inside the icon_light value. When the post is viewed, the browser executes the attacker-controlled script in the context of the site's origin.
Because the scope metric is marked as Changed, the impact extends beyond the vulnerable component. Script execution against an administrator session can lead to arbitrary plugin installation, user creation, or complete site takeover.
Root Cause
The root cause is a missing call to WordPress sanitization and escaping helpers such as sanitize_text_field() on input and esc_attr() or esc_html() on output. The shortcode handler trusts user-controlled attribute data and emits it directly into the response HTML. This pattern falls under CWE-79: Improper Neutralization of Input During Web Page Generation.
Attack Vector
An authenticated attacker with Contributor or higher privileges creates or edits a post that embeds the plugin's shortcode. The attacker sets the icon_light attribute to a payload containing HTML event handlers or <script> elements. Once an administrator, editor, or site visitor loads the page, the payload executes under the site's origin. No user interaction beyond page load is required.
See the WordPress Plugin Changeset for the exact code change and the Wordfence Vulnerability Intel advisory for additional context.
Detection Methods for CVE-2026-93535
Indicators of Compromise
- Posts or pages containing the plugin's shortcode with suspicious icon_light attribute values that include <script>, onerror=, onload=, or javascript: sequences.
- Unexpected administrative actions such as new user creation, plugin installation, or option changes shortly after a contributor publishes or edits content.
- Outbound HTTP requests from browsers viewing affected pages to attacker-controlled domains.
Detection Strategies
- Audit wp_posts content for the vulnerable shortcode and inspect each icon_light attribute value for HTML or script syntax.
- Monitor WordPress audit logs for Contributor accounts submitting posts that include shortcode attributes with angle brackets or quote-breaking characters.
- Enable Content Security Policy (CSP) reporting to surface inline script execution attempts on pages rendered by the plugin.
Monitoring Recommendations
- Alert on new post publication or revision events from Contributor-level accounts and queue content for review.
- Track administrative actions correlated with recent page views of contributor-authored content.
- Capture browser error telemetry and CSP violation reports from authenticated administrator sessions.
How to Mitigate CVE-2026-93535
Immediate Actions Required
- Update the Dark Mode plugin to the version that supersedes 5.3.17 as published in the vendor changeset.
- Review all existing posts and pages for the vulnerable shortcode and remove any suspicious icon_light payloads.
- Rotate credentials for administrator accounts that may have viewed malicious content, and invalidate active WordPress sessions.
Patch Information
The fix is published in the WordPress Plugin Changeset 3704136. Site operators should upgrade to the patched release immediately through the WordPress plugin manager or via WP-CLI.
Workarounds
- Restrict Contributor-level account creation and require administrator approval for new author submissions.
- Deactivate the Dark Mode plugin until the patched release is deployed if an immediate upgrade is not feasible.
- Deploy a Web Application Firewall (WAF) rule to block shortcode attribute values containing HTML tags or JavaScript event handlers.
# Update the plugin using WP-CLI
wp plugin update dark-mode --version=latest
wp plugin list --name=dark-mode --fields=name,status,version
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

