
Onyx Dark Mode Switcher Security & Risk Analysis
wordpress.org/plugins/onyx-dark-mode-switcherSwitch between light and dark themes for a more comfortable viewing experience, day or night.
Is Onyx Dark Mode Switcher Safe to Use in 2026?
Generally Safe
Score 100/100Onyx Dark Mode Switcher has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.
The onyx-dark-mode-switcher plugin, version 1.0.2, demonstrates a generally good security posture with several positive indicators. The complete absence of dangerous functions, SQL injection vulnerabilities (all queries use prepared statements), and external HTTP requests are strong points. Furthermore, the high percentage of properly escaped output and the presence of nonce and capability checks suggest developers are aware of common security best practices. The plugin also has a clean vulnerability history, with no known CVEs, which is reassuring.
However, a significant concern arises from the attack surface. The plugin exposes three AJAX handlers, but two of these lack authentication checks. This creates a potential entry point for attackers to trigger plugin functionality without proper authorization, which could lead to unintended consequences or information disclosure depending on what these handlers do. The static analysis did not reveal any taint flows, which is positive, but the presence of unprotected AJAX endpoints remains the most critical weakness.
In conclusion, while the plugin exhibits good coding practices in many areas and has no past vulnerabilities, the unprotected AJAX handlers are a clear security risk. Addressing these unprotected entry points should be the highest priority to improve the plugin's overall security. The lack of critical or high severity findings in the static analysis and vulnerability history is a positive sign, but the identified attack surface needs immediate attention.
Key Concerns
- Unprotected AJAX handlers
Onyx Dark Mode Switcher Security Vulnerabilities
Onyx Dark Mode Switcher Code Analysis
Output Escaping
Onyx Dark Mode Switcher Attack Surface
AJAX Handlers 3
WordPress Hooks 8
Maintenance & Trust
Onyx Dark Mode Switcher Maintenance & Trust
Maintenance Signals
Community Trust
Onyx Dark Mode Switcher Alternatives
WP Dark Mode – Improve Accessibility with AI Powered Dark Theme
wp-dark-mode
Enable dark mode on WordPress without any coding. Improve site accessibility with a stunning dark theme that improves conversion.
Dark Mode for WP Dashboard
dark-mode-for-wp-dashboard
Makes your WordPress admin dashboard in dark mode.
Dark Mode Toggle
dark-mode-toggle
Bring dark mode toggle switch to your WordPress website. A simple switch to turn on and off the dark mode. Fast and easy to use.
DarkLooks – Dark Mode Switcher For WordPress
darklooks-dark-mode-switcher
Short Description: Enable dark mode on your WordPress site for better eye comfort in low-light environments.
DarkMySite – Advanced Dark Mode Plugin for WordPress
darkmysite
Best WordPress dark mode plugin to ready your site for the night. Multiple floating switch to choose between night mode and normal mode.
Onyx Dark Mode Switcher Developer Profile
19 plugins · 66K total installs
How We Detect Onyx Dark Mode Switcher
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/onyx-dark-mode-switcher/admin/css/admin.css/wp-content/plugins/onyx-dark-mode-switcher/admin/css/materialdesignicons.css/wp-content/plugins/onyx-dark-mode-switcher/admin/js/jquery-condition.js/wp-content/plugins/onyx-dark-mode-switcher/admin/js/admin.js/wp-content/plugins/onyx-dark-mode-switcher/public/css/onyx-dark-mode-switcher-public.css/wp-content/plugins/onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.js/wp-content/plugins/onyx-dark-mode-switcher/admin/js/jquery-condition.js/wp-content/plugins/onyx-dark-mode-switcher/admin/js/admin.js/wp-content/plugins/onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.jsonyx-dark-mode-switcher/admin/css/admin.css?ver=onyx-dark-mode-switcher/admin/css/materialdesignicons.css?ver=onyx-dark-mode-switcher/admin/js/jquery-condition.js?ver=onyx-dark-mode-switcher/admin/js/admin.js?ver=onyx-dark-mode-switcher/public/css/onyx-dark-mode-switcher-public.css?ver=onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.js?ver=HTML / DOM Fingerprints
onyx-alertonyx-alert-messageonyx_admin_obj