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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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
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.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-13987
GHSA-74vj-5878-6g9m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB