Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Security & Risk Analysis

wordpress.org/plugins/nocturne-dark-mode

Nocturne Dark Mode is a powerful plugin that allows you to easily enable dark mode on your website built with Elementor with just a few clicks.

200 active installs v1.2.7 PHP 7.0+ WP 5.0+ Updated Apr 17, 2025
dark-modedark-mode-plugindark-mode-toggleelementor-dark-modeelementor-widgets
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Safe to Use in 2026?

Generally Safe

Score 100/100

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 11mo ago
Risk Assessment

The 'nocturne-dark-mode' plugin v1.2.7 exhibits a strong security posture in several key areas. The static analysis reveals a complete absence of direct entry points like AJAX handlers, REST API routes, shortcodes, and cron events, and importantly, none of these potential entry points are left unprotected. Furthermore, the plugin demonstrates excellent practice by using prepared statements for all its SQL queries and avoiding file operations or external HTTP requests. This suggests a thoughtful approach to development with security in mind.

However, a significant concern arises from the output escaping. With 39 total outputs and only 49% properly escaped, there is a high probability of Cross-Site Scripting (XSS) vulnerabilities. This means that user-supplied data or dynamic content might be rendered directly in the browser without sufficient sanitization, allowing attackers to inject malicious scripts. The vulnerability history shows no known CVEs, which is a positive sign, but it doesn't negate the risks identified in the code analysis, especially concerning output escaping.

In conclusion, while the plugin avoids common pitfalls like unprotected entry points and insecure SQL practices, the poor output escaping presents a notable security risk. The lack of historical vulnerabilities could be due to the plugin's limited exposure, limited auditing, or simply good fortune up to this point. The primary focus for improvement should be on implementing robust output escaping to mitigate potential XSS vulnerabilities.

Key Concerns

  • Poor output escaping (49% properly escaped)
Vulnerabilities
None known

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
20
19 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
1

Bundled Libraries

Freemius1.0

Output Escaping

49% escaped39 total outputs
Attack Surface

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 20
actionelementor/element/after_section_endincludes\compatibility\class-nocturne-happy-addons.php:49
actionelementor/element/after_section_endincludes\compatibility\class-nocturne-hfe.php:49
actionwp_body_openincludes\customizer\customizer.php:19
actioncustomize_registerincludes\customizer\customizer.php:339
actionwp_headincludes\customizer\customizer.php:378
actioncustomize_preview_initincludes\customizer\customizer.php:387
actioninitnocturne-dark-mode.php:133
actionplugins_loadednocturne-dark-mode.php:134
actionadmin_noticesnocturne-dark-mode.php:168
actionadmin_noticesnocturne-dark-mode.php:173
actionadmin_noticesnocturne-dark-mode.php:178
actionadmin_enqueue_scriptsnocturne-dark-mode.php:182
actionadmin_menunocturne-dark-mode.php:184
actionelementor/elements/categories_registerednocturne-dark-mode.php:186
actionelementor/frontend/after_register_scriptsnocturne-dark-mode.php:188
actionwp_enqueue_scriptsnocturne-dark-mode.php:189
actionelementor/editor/after_enqueue_stylesnocturne-dark-mode.php:191
actionelementor/widgets/registernocturne-dark-mode.php:193
actionelementor/element/after_section_endnocturne-dark-mode.php:195
filterlanguage_attributesnocturne-dark-mode.php:204
Maintenance & Trust

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedApr 17, 2025
PHP min version7.0
Downloads8K

Community Trust

Rating82/100
Number of ratings7
Active installs200
Developer Profile

Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress Developer Profile

DeoThemes

18 plugins · 9K total installs

73
trust score
Avg Security Score
92/100
Avg Patch Time
101 days
View full developer profile
Detection Fingerprints

How We Detect Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/nocturne-dark-mode/assets/js/nocturne-dark-mode-frontend.js/wp-content/plugins/nocturne-dark-mode/assets/css/nocturne-dark-mode-frontend.css/wp-content/plugins/nocturne-dark-mode/assets/css/nocturne-dark-mode-admin.css
Version Parameters
nocturne-dark-mode/assets/js/nocturne-dark-mode-frontend.js?ver=nocturne-dark-mode/assets/css/nocturne-dark-mode-frontend.css?ver=nocturne-dark-mode/assets/css/nocturne-dark-mode-admin.css?ver=

HTML / DOM Fingerprints

CSS Classes
nocturne-dark-mode-togglenocturne-dark-mode-switch
HTML Comments
<!-- Nocturne Dark Mode Options -->
Data Attributes
data-scheme="dark"
JS Globals
window.nocturne_dark_mode_options
FAQ

Frequently Asked Questions about Nocturne Dark Mode – Elementor Dark Mode Toggle for WordPress