Night Mode Security & Risk Analysis

wordpress.org/plugins/night-mode

Night Mode is the Wordpress plugin which is made to work you with ease in Night , Causing Relaxation in your eyes and you don't have to face itch …

40 active installs v1.5.0 PHP 7.0+ WP 4.7+ Updated Nov 25, 2024
night-modenight-mode-for-wordpressnight-mode-on-offwebsite-night-modewordpress-night-mode
92
A · Safe
CVEs total1
Unpatched0
Last CVEApr 25, 2022
Safety Verdict

Is Night Mode Safe to Use in 2026?

Generally Safe

Score 92/100

Night Mode has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Apr 25, 2022Updated 1yr ago
Risk Assessment

The static analysis of the 'night-mode' plugin v1.5.0 indicates a generally positive security posture. The plugin exhibits good practices by not utilizing dangerous functions, all SQL queries are properly prepared, and output is consistently escaped. Furthermore, there are no identified file operations or external HTTP requests, and the attack surface is reported as zero. This suggests that direct code injection or manipulation through these common vectors is unlikely within the current code version.

However, the presence of one historical medium-severity vulnerability, specifically Cross-Site Scripting (XSS), is a concern. Although it is currently patched, the nature of XSS vulnerabilities can indicate potential issues with input sanitization or output encoding in previous versions. The static analysis's lack of reported taint flows and zero unescaped outputs is promising for the current version, but it doesn't entirely negate the possibility of overlooked vulnerabilities. The absence of nonce checks and capability checks, while not directly leading to deductions in this specific report due to the zero attack surface, represents a potential gap in security best practices that could become relevant if the plugin's functionality expands.

In conclusion, while the current version of 'night-mode' appears to be well-secured based on the provided static analysis, the historical XSS vulnerability serves as a reminder of the importance of continuous security vigilance. The plugin's strengths lie in its clean code concerning dangerous functions, SQL, and output escaping. The primary weakness is the historical precedent of XSS, which, combined with the lack of explicit authorization checks in the reported static analysis, warrants a cautious approach to future development and updates.

Key Concerns

  • Historical medium XSS vulnerability
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
1

Night Mode Security Vulnerabilities

CVEs by Year

1 CVE in 2022
2022
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2022-29418medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Night Mode <= 1.0.0 - Authenticated (Admin+) Stored Cross-Site Scripting

Apr 25, 2022 Patched in 1.4.0 (638d)
Code Analysis
Analyzed Mar 16, 2026

Night Mode Code Analysis

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

Output Escaping

100% escaped4 total outputs
Attack Surface

Night Mode Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionadmin_menunight-mode.php:19
actionadmin_footernight-mode.php:22
actionadmin_bar_menunight-mode.php:26
actionadmin_menutrunk\night-mode.php:19
actionadmin_footertrunk\night-mode.php:22
actionadmin_bar_menutrunk\night-mode.php:26
Maintenance & Trust

Night Mode Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedNov 25, 2024
PHP min version7.0
Downloads6K

Community Trust

Rating68/100
Number of ratings5
Active installs40
Developer Profile

Night Mode Developer Profile

Raj

4 plugins · 50 total installs

72
trust score
Avg Security Score
90/100
Avg Patch Time
638 days
View full developer profile
Detection Fingerprints

How We Detect Night Mode

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/night-mode/js/body_color.js/wp-content/plugins/night-mode/js/jscolor.js
Script Paths
/wp-content/plugins/night-mode/js/body_color.js/wp-content/plugins/night-mode/js/jscolor.js

HTML / DOM Fingerprints

CSS Classes
nav-tab-activechkinptext-bg-colorjscolortext-colorhidtex_colorhid_back_colorhidtexv2+1 more
Data Attributes
id="input-checkbox"name="ntmode_page_setting[enable-me]"id="back-colors"name="ntmode_page_setting[bg-color]"id="text-color"name="ntmode_page_setting[txt-color]"+13 more
FAQ

Frequently Asked Questions about Night Mode