What the vulnerability does
01Description
The MG AdvancedOptions plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` variable in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Explanation of Vulnerability in Simple Terms
02Summary
MG AdvancedOptions versions 1.2 and earlier contain a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts into web pages. The vulnerability requires user interaction—typically clicking a malicious link—and can affect other users viewing the compromised page. An attacker with no authentication can exploit this to steal session cookies, redirect users, or deface content.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that runs in other users' browsers when they visit a crafted link.
Potential impact on your site
04Site Impact
Users' sessions and data can be compromised; site reputation and trust may be damaged.
Conditions required to exploit
05Prerequisites
Victim must click an attacker-supplied link or visit a page containing the malicious payload.
Key dates
06Disclosure timeline
January 9, 2026
CVE published
April 8, 2026
Record updated