CVE-2026-1886
Received Received - Intake

Stored XSS in Go Night Pro WordPress Plugin Allows Script Injection

Vulnerability report for CVE-2026-1886, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-03-21

Last updated on: 2026-03-21

Assigner: Wordfence

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-03-21
Last Modified
2026-03-21
Generated
2026-07-06
AI Q&A
2026-03-21
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
go_night_pro go_night_pro to 1.1.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The Go Night Pro WordPress Dark Mode Plugin is vulnerable to Stored Cross-Site Scripting (XSS) through its 'go-night-pro-shortcode' shortcode. This vulnerability exists in all versions up to and including 1.1.0 because the plugin does not properly sanitize or escape user input for the 'margin' attribute. As a result, authenticated users with contributor-level access or higher can inject malicious scripts that will execute whenever any user views the affected page.

Impact Analysis

This vulnerability allows attackers with contributor-level access or above to inject arbitrary scripts into pages. These scripts can execute in the context of other users visiting the page, potentially leading to theft of user credentials, session hijacking, defacement, or distribution of malware. The impact includes loss of data integrity and confidentiality, and it can compromise the security of the affected WordPress site.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

I don't know

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-1886. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart