CVE-2026-1647
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-1647 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Comment Genius plugin for WordPress, affecting all versions up to and including 1.2.5. The flaw exists in the $_SERVER['PHP_SELF'] parameter due to insufficient input sanitization and output escaping, enabling unauthenticated attackers to inject arbitrary web scripts. It was published on March 21, 2026, and assigned by Wordfence. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Wordfence, Red Hat CVE).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically in the plugin's cgm-options.php file at line 78, where the $_SERVER['PHP_SELF'] superglobal is reflected into the page output without sanitization or escaping. An attacker crafts a malicious URL containing a JavaScript payload embedded in the path component, which PHP populates into $_SERVER['PHP_SELF'] and the plugin renders unsanitized in the HTML response. Exploitation requires no authentication but does require user interaction — the victim must click a crafted link. No authentication or special privileges are needed on the attacker's side (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an 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. Confidentiality and integrity are both impacted at a low level (per CVSS), with no direct availability impact; however, chained with social engineering, the attack could facilitate account takeover of authenticated users including administrators (Wordfence).

Exploitability

No patch was available in version 1.2.5 or earlier at the time of disclosure. The EPSS score is approximately 0.065%, indicating a low but non-zero probability of exploitation in the wild. There is no current evidence of active in-the-wild exploitation, threat actor attribution, or inclusion in CISA's Known Exploited Vulnerabilities (KEV) catalog. Proof-of-concept details are implicitly available through the Wordfence advisory and the publicly accessible vulnerable code in the WordPress plugin repository (Wordfence, WordPress Trac).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Comment Genius plugin (version ≤ 1.2.5) using tools like WPScan, Shodan, or Google dorks (e.g., inurl:/wp-content/plugins/comment-genius).
  2. Identify vulnerable endpoint: Locate the plugin's options page (cgm-options.php) which reflects $_SERVER['PHP_SELF'] unsanitized into the HTML output.
  3. Craft malicious URL: Construct a URL that injects a JavaScript payload into the PHP_SELF path, for example: https://victim-site.com/wp-admin/options-general.php/[XSS_PAYLOAD]?page=comment-genius where [XSS_PAYLOAD] is something like %22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E.
  4. Deliver the link: Send the crafted URL to a target user (e.g., a WordPress administrator) via phishing email, forum post, or other social engineering channel.
  5. Achieve objective: When the victim clicks the link and loads the page, the injected script executes in their browser, enabling cookie theft, session hijacking, or further malicious actions (Wordfence, WordPress Trac).

Indicators of compromise

  • Network: HTTP requests to WordPress plugin pages (e.g., cgm-options.php) containing URL-encoded script tags or JavaScript event handlers in the URL path component; unusual outbound requests from victim browsers to attacker-controlled domains shortly after accessing plugin pages.
  • Logs: Web server access logs showing requests to /wp-admin/options-general.php/<script> or similar path-injected patterns; referrer headers pointing to external sites in requests to the plugin's admin page.
  • Browser/Client-Side: Unexpected JavaScript execution or redirects when visiting WordPress admin pages related to Comment Genius; session cookies transmitted to unknown third-party endpoints.

Mitigation and workarounds

The primary remediation is to update the Comment Genius plugin beyond version 1.2.5 if a patched release becomes available, or to deactivate and remove the plugin entirely until a fix is issued. As a workaround, site administrators can restrict access to the plugin's settings page via server-level controls (e.g., .htaccess rules limiting access to trusted IPs). Implementing a Web Application Firewall (WAF) rule to block requests with script tags or JavaScript payloads in URL paths can also reduce exposure (Wordfence, WordPress Plugin).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15439MEDIUM6.5
  • gamipress
NoYesSep 11, 2026
CVE-2026-85116MEDIUM6.5
  • simple-cloudflare-turnstile
NoYesSep 11, 2026
CVE-2026-86809MEDIUM5.3
  • persian-elementor
NoYesSep 11, 2026
CVE-2026-86813MEDIUM4.8
  • metform
NoYesSep 11, 2026
CVE-2024-12145MEDIUM4.3
  • buddypress
NoYesSep 11, 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