CVE-2025-13892: 
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-13892 is a Reflected Cross-Site Scripting (XSS) vulnerability in the MG AdvancedOptions plugin for WordPress, affecting all versions up to and including 1.2. The flaw arises from the unsanitized use of the $_SERVER['PHP_SELF'] variable, allowing unauthenticated attackers to inject arbitrary web scripts that execute in a victim's browser when they are tricked into clicking a malicious link. It was published on January 9, 2026, with Wordfence as the reporting CNA. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Wordfence).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically due to insufficient input sanitization and output escaping of the $_SERVER['PHP_SELF'] superglobal variable in the plugin's PHP code. The PHP_SELF variable reflects the current script's URL path and can be manipulated by appending malicious content to the URL, which is then echoed back into the page without proper escaping. The vulnerable code is located at lines 58 and 96 of MG_AdvancedOptions.php in the plugin's trunk. Exploitation requires no authentication and no special privileges, but does require user interaction — specifically, a victim must click a crafted link (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's browser session on the affected WordPress site. This can lead to session cookie theft, credential harvesting, defacement of page content as seen by the victim, or redirection to malicious sites. The scope is changed (affecting resources beyond the vulnerable component), with low confidentiality and low integrity impact, and no availability impact (Wordfence).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-13892. The EPSS score is approximately 0.061%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been identified (Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the MG AdvancedOptions plugin version 1.2 or earlier, using tools like WPScan or by checking the plugin's readme.txt file at wp-content/plugins/mg-advancedoptions/readme.txt.
  2. Craft malicious URL: Construct a URL targeting a page that invokes the vulnerable plugin code, appending a malicious payload to the script path via the PHP_SELF variable — for example: https://target.com/wp-admin/options-general.php/<script>alert(document.cookie)</script>.
  3. Deliver the link: Send the crafted URL to a target user (e.g., a WordPress administrator) via phishing email, social engineering, or embedded in another page.
  4. Payload execution: When the victim clicks the link and loads the page, the unsanitized PHP_SELF value is reflected into the HTML response, causing the injected script to execute in the victim's browser.
  5. Achieve objective: Leverage the executed script to steal session cookies, capture credentials, or perform actions on behalf of the victim within the WordPress site (Wordfence, WordPress Trac).

Indicators of compromise

  • Network: HTTP GET requests to WordPress admin or plugin pages containing URL-encoded script tags or JavaScript payloads in the path component (e.g., /<script>, /%3Cscript%3E) targeting pages that load the MG AdvancedOptions plugin.
  • Logs: Web server access logs showing requests with unusual characters or encoded HTML/JavaScript in the URI path, particularly to pages associated with the plugin's settings.
  • Logs: WordPress or PHP error logs referencing MG_AdvancedOptions.php with unexpected input values in the PHP_SELF context.
  • Browser/Client: Victim browsers making unexpected outbound requests to attacker-controlled domains following interaction with a WordPress page running the plugin.

Mitigation and workarounds

As of the disclosure date, no patched version of the MG AdvancedOptions plugin beyond 1.2 has been confirmed as available. Site administrators should deactivate and remove the MG AdvancedOptions plugin until a patched version is released. As a general mitigation, a Web Application Firewall (WAF) such as Wordfence can help detect and block reflected XSS payloads targeting this plugin. Users should also educate staff about phishing links and avoid clicking unsolicited URLs pointing to their WordPress admin panel (Wordfence).

Community reactions

The vulnerability was reported by Wordfence and received standard coverage in vulnerability aggregation platforms and security feeds. No notable researcher commentary, vendor statements beyond the Wordfence advisory, or significant social media discussion has been identified for this CVE.

Additional resources


Source: This report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86850MEDIUM6.5
  • sku-error-fixer-for-woocommerce
NoNoOct 06, 2026
CVE-2026-88931MEDIUM5.3
  • social-web-suite
NoNoOct 06, 2026
CVE-2026-87841MEDIUM5.3
  • unitechpay-paiements-mobile-money
NoNoOct 06, 2026
CVE-2026-92990MEDIUM5.3
  • sendpress
NoNoOct 06, 2026
CVE-2026-92989MEDIUM4.3
  • sendpress
NoNoOct 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management