Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-1886: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in hrs2015 Go Night Pro | WordPress Dark Mode Plugin

0
Medium
VulnerabilityCVE-2026-1886cvecve-2026-1886cwe-79
Published: Sat Mar 21 2026 (03/21/2026, 03:26:44 UTC)
Source: CVE Database V5
Vendor/Project: hrs2015
Product: Go Night Pro | WordPress Dark Mode Plugin

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/21/2026, 04:48:16 UTC

Technical Analysis

CVE-2026-1886 is a stored cross-site scripting (XSS) vulnerability identified in the Go Night Pro | WordPress Dark Mode Plugin, developed by hrs2015, affecting all versions up to and including 1.1.0. The vulnerability stems from improper neutralization of user input (CWE-79) specifically in the 'margin' attribute of the plugin's 'go-night-pro-shortcode' shortcode. The plugin fails to adequately sanitize and escape this attribute, allowing authenticated users with contributor-level or higher privileges to inject arbitrary JavaScript code into WordPress pages. Because the injected scripts are stored persistently within the page content, they execute automatically whenever any user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing actions on behalf of users. The vulnerability requires authenticated access but no user interaction beyond viewing the page. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and privileges required at the contributor level. The scope is changed (S:C), indicating that exploitation can affect resources beyond the vulnerable component. No patches or official fixes have been linked yet, and no known exploits are reported in the wild. This vulnerability highlights the risks of insufficient input validation in WordPress plugins, especially those that allow shortcode attributes to be user-controlled and rendered without proper escaping.

Potential Impact

The impact of CVE-2026-1886 is significant for organizations using the affected WordPress plugin, particularly those with multiple contributors or editors who have authenticated access. Successful exploitation enables attackers to inject persistent malicious scripts that execute in the browsers of any users visiting the compromised pages. This can lead to session hijacking, theft of authentication tokens, unauthorized actions performed with victim user privileges, defacement, or distribution of malware. Since the vulnerability requires contributor-level access, it could be exploited by malicious insiders or compromised contributor accounts. The scope change means that the attack can affect other components or users beyond the plugin itself, potentially compromising the confidentiality and integrity of site content and user data. Although availability impact is low, the reputational damage and potential data breaches can be severe. Organizations relying on this plugin for site appearance and user experience may face increased risk of targeted attacks, especially in sectors with high-value content or sensitive user information.

Mitigation Recommendations

To mitigate CVE-2026-1886, organizations should immediately upgrade the Go Night Pro plugin to a fixed version once available from the vendor. Until a patch is released, administrators should restrict contributor-level access to trusted users only and audit existing contributor accounts for suspicious activity. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections in shortcode attributes can provide temporary protection. Site administrators should also enable Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. Regularly scanning site content for injected scripts and monitoring logs for unusual shortcode usage can help detect exploitation attempts. Developers maintaining the plugin should apply proper input validation and output encoding on all shortcode attributes, especially those that accept user input. Finally, educating contributors about the risks of injecting untrusted content and enforcing strict content review policies can reduce the attack surface.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-02-04T14:21:05.709Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69be1809f4197a8e3b783d2e

Added to database: 3/21/2026, 4:01:13 AM

Last enriched: 3/21/2026, 4:48:16 AM

Last updated: 3/22/2026, 6:51:18 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses