Skip to main content

Go Night Pro Wordpress Dark Mode Plugin CVE-2026-1886

| EUVDEUVD-2026-13987 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-21 Wordfence GHSA-74vj-5878-6g9m
6.4
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS v3.1 vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) indicates a network-accessible vulnerability with low attack complexity requiring only low-privilege WordPress credentials (contributor level), no user interaction needed, and scope change allowing impact beyond the vulnerable component. The Medium severity rating (6.4) reflects that while confidentiality and integrity are impacted, there is no availability impact. The vulnerability requires authenticated access, which reduces the attack surface compared to unauthenticated XSS, but the scope change (S:C) is significant as injected scripts execute in the context of all site visitors, not just the attacker. The stored nature of this XSS makes it persistent and potentially affects numerous users over time. Without access to current EPSS scores or KEV status from CISA, the real-world risk appears moderate: the requirement for contributor-level authentication and the plugin's specific market niche (dark mode functionality) limit the absolute attack surface, but any WordPress site using this plugin with untrusted contributors faces legitimate risk. This is not a low-risk high-CVSS artifact but rather a genuine priority for affected deployments.

Exploit ScenarioDerived

A malicious WordPress contributor with legitimate account credentials logs into a vulnerable WordPress site running Go Night Pro version 1.1.0 and creates a page with the shortcode [go-night-pro-shortcode margin="1px onload=alert('XSS')"], exploiting the unsanitized 'margin' attribute to inject JavaScript. When site administrators or other users visit this page, the injected script executes in their browser context, potentially stealing session cookies, redirecting to malicious sites, or modifying page content. Since this is stored XSS, the attack persists indefinitely until the malicious shortcode is removed, affecting every visitor to the compromised page without requiring any additional user interaction beyond normal site browsing.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 21, 2026

A Stored Cross-Site Scripting (XSS) vulnerability exists in the Go Night Pro WordPress Dark Mode Plugin affecting all versions up to and including 1.1.0, where the 'margin' attribute of the 'go-night-pro-shortcode' shortcode fails to properly sanitize and escape user input. Authenticated attackers with contributor-level access or above can inject arbitrary JavaScript code into pages, which executes when other users access the affected pages. This vulnerability carries a CVSS score of 6.4 (Medium) with network-based attack vector and low complexity, requiring valid WordPress credentials but affecting site-wide script execution with potential impact on user data and site integrity.

RemediationAI

Update the Go Night Pro WordPress Dark Mode Plugin to a version newer than 1.1.0 as soon as a patch is available from the plugin developer. Until an official update is released, WordPress administrators should immediately restrict the 'go-night-pro-shortcode' shortcode usage to trusted administrators only, or deactivate the plugin if dark mode functionality is not critical. Additionally, audit all existing pages and posts containing the 'go-night-pro-shortcode' shortcode for suspicious 'margin' attribute values, and consider using Web Application Firewall (WAF) rules to detect and block shortcode injection patterns targeting this plugin. Monitor the WordPress plugin repository and Wordfence threat intelligence feed (https://www.wordfence.com/threat-intel/vulnerabilities/id/4a75444e-b1e4-41e0-9209-07ded65c1498?source=cve) for security updates and implement them immediately upon availability.

Affected VersionsENISA

Go Night Pro | WordPress Dark Mode Plugin * ≤1.1.0

Affected Packages

euvd go_night_pro_wordpress_dark_mode_plugin no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is rooted in improper input handling within the Go Night Pro plugin's shortcode implementation, specifically in the 'go-night-shortcode-display.php' file at lines 48 and 61 as identified in the WordPress plugin repository. The vulnerability falls under CWE-79 (Improper Neutralization of Input During Web Page Generation), a classic XSS weakness where user-supplied data enters the application through shortcode attributes without sufficient sanitization before being rendered in the DOM. The affected product is the Go Night Pro WordPress Dark Mode Plugin (CPE: cpe:2.3:a:hrs2015:go_night_pro_|_wordpress_dark_mode_plugin:*:*:*:*:*:*:*:*), which integrates into WordPress's shortcode parsing system. The 'margin' attribute is passed directly to HTML rendering without escaping functions like esc_attr() or sanitizing functions like sanitize_text_field(), allowing attackers to break out of attribute context and inject script tags or event handlers.

Know when Go Night Pro Wordpress Dark Mode Plugin gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Organizations using all should be aware of moderate risk from CVE-2026-1886, a cross-site scripting vulnerability rated CVSS 6.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy