
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-14131 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WP Widget Changer plugin for WordPress. It affects all versions up to and including 1.2.5, stemming from the unsanitized use of the $_SERVER['PHP_SELF'] PHP superglobal variable. The vulnerability was disclosed on January 7, 2026, with Wordfence as the CNA. It carries a CVSS v3.1 base score of 6.1 (Medium) (Wordfence).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the direct use of $_SERVER['PHP_SELF'] in output without proper sanitization or escaping, as visible in the plugin source at line 162 of widget_changer.php (WordPress Trac). The PHP_SELF variable reflects the current script's URL path and can be manipulated by an attacker to inject arbitrary JavaScript into the page response. Exploitation requires no authentication or elevated privileges, but does require user interaction — specifically, a victim must be tricked into clicking a crafted malicious link that causes the injected script to execute in their browser context (Wordfence).
Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of a victim's browser session on the affected WordPress site. This can lead to session cookie theft, credential harvesting, redirection to malicious sites, or defacement of page content as rendered to the victim. The scope is changed (S:C in CVSS), meaning the impact extends beyond the vulnerable component to the victim's browser environment, though availability of the server itself is not affected (Wordfence).
/wp-content/plugins/wp-widget-changer/ for plugin presence.PHP_SELF, e.g., https://target.com/wp-admin/options-general.php/[XSS_PAYLOAD]?page=wp-widget-changer, where [XSS_PAYLOAD] is something like %22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E.PHP_SELF value is reflected into the HTML response, causing the injected script to execute in the victim's browser.options-general.php?page=wp-widget-changer) containing URL-encoded script tags or JavaScript payloads in the URL path component.%3C, %3E, %22, <script>) in the URL path targeting plugin-related pages; unusual referrer headers in victim browser requests.The primary remediation is to update the WP Widget Changer plugin to a version beyond 1.2.5 that addresses the PHP_SELF sanitization issue — users should check the WordPress plugin repository for an updated release. If no patched version is available, site administrators should consider deactivating and removing the plugin until a fix is released. As a general hardening measure, implement a Web Application Firewall (WAF) rule to block reflected XSS attempts targeting WordPress plugin pages (Wordfence).
Wordfence, the CNA for this CVE, published the vulnerability details as part of their threat intelligence feed on January 7, 2026. No significant broader media coverage, researcher commentary, or notable social media discussion has been identified for this vulnerability beyond standard aggregator listings.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."