CVE-2022-29418 MEDIUM

CVE-2022-29418: WordPress Night Mode plugin <= 1.0.0 - Authenticated Persistent Cross-Site Scripting (XSS) vulnerability

Vendor Mark Daniels
Product Night Mode (WordPress plugin)
Weakness CWE-79 · XSS
Published April 25, 2022
Last update April 28, 2026

CVSS base score

4.8/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

Authenticated (admin user role) Persistent Cross-Site Scripting (XSS) in Mark Daniels Night Mode plugin <= 1.0.0 on WordPress via vulnerable parameters: &ntmode_page_setting[enable-me], &ntmode_page_setting[bg-color], &ntmode_page_setting[txt-color], &ntmode_page_setting[anc_color].

Explanation of Vulnerability in Simple Terms

02Summary

The Night Mode WordPress plugin version 1.0.0 contains a stored cross-site scripting (XSS) vulnerability. An authenticated administrator can inject malicious JavaScript that executes in the browsers of other site users. The vulnerability requires an admin to intentionally craft a malicious input, and the injected code runs with the privileges of the user viewing the affected page.

What an attacker can do

03Attacker Capabilities

Inject JavaScript that runs in other users' browsers when they view the site.

Potential impact on your site

04Site Impact

A compromised admin account can inject malicious scripts affecting all site visitors, potentially stealing credentials or redirecting users.

Conditions required to exploit

05Prerequisites

Administrator account access and user interaction (victim must visit an affected page).

Key dates

06Disclosure timeline

April 25, 2022 CVE published
April 28, 2026 Record updated

Related vulnerabilities

08Related CVE