
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
inurl:/wp-content/plugins/comment-genius).cgm-options.php) which reflects $_SERVER['PHP_SELF'] unsanitized into the HTML output.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.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./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.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).
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."