What the vulnerability does
01Description
The Go Night Pro | WordPress Dark Mode Plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'go-night-pro-shortcode' shortcode in all versions up to, and including, 1.1.0 due to insufficient input sanitization and output escaping on the user-supplied 'margin' attribute. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Explanation of Vulnerability in Simple Terms
02Summary
The Go Night Pro WordPress dark mode plugin versions 1.1.0 and earlier contain a stored cross-site scripting (XSS) vulnerability. An authenticated user with low privileges can inject malicious JavaScript that executes in the browsers of other site users, including administrators. The vulnerability affects the plugin's settings or content handling and can impact the entire site due to scope change.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that runs in other users' browsers, potentially stealing credentials or modifying site content.
Potential impact on your site
04Site Impact
Any authenticated user can inject code that affects administrators and other visitors, compromising site security and user data.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege WordPress account (e.g., subscriber or contributor role).
Key dates
06Disclosure timeline
March 21, 2026
CVE published
April 8, 2026
Record updated