Markdown to HTML Converter
CVE-2025-60312
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted Markdown link to victim
-
DeliveryVictim loads payload into input field
-
ExploitVictim clicks 'Convert to HTML'
-
ExecutionInjected JavaScript executes in browser
-
ImpactSession/UI data exposed or actions forged
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to supply attacker-crafted Markdown into the application's 'Markdown Input' field and then click the 'Convert to HTML' button - the mandatory user interaction (UI:R) that gates the attack. The specific feature involved is the converter's Markdown-to-HTML rendering, which fails to sanitize HTML/JavaScript in the input. Limiting factors: the attack needs the victim to both load the payload and actively trigger conversion, and the available sources do not describe a stored/persistent vector, so impact hinges on an attacker's ability to deliver crafted input to a target rather than merely a user converting their own content. |
| Impact | Signals point to a low-priority issue despite the medium CVSS score. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) scores 6.1 and reflects a classic reflected/client-side XSS: network-reachable, no privileges, but requiring user interaction (the victim must click 'Convert to HTML'). There is no KEV listing, so exploitation status is 'no public exploit identified at time of analysis' in terms of confirmed active use; however, a public PoC reference exists (it is not verified as working exploit code), so the flaw is not purely theoretical. No EPSS score was supplied, so widespread-exploitation probability cannot be quantified. The vuln.today Decision label is 'this_month', i.e. routine patching urgency rather than act_now/emergency. A notable caveat: the description frames the payload as injected into the 'Markdown Input' field and executing on conversion, which is consistent with self-contained client-side conversion - meaning the realistic cross-victim impact depends on whether an attacker can deliver crafted input to another user (e.g. a shared/pre-filled link). This should be verified against the actual deployment, because a purely local convert-your-own-input tool yields self-XSS with minimal real risk. |
| Exploit ScenarioDerived | An attacker crafts Markdown containing an HTML/JavaScript payload and lures a victim into loading it into the converter's 'Markdown Input' field (for example via a pre-populated or shared link) and clicking 'Convert to HTML'. The script then executes in the victim's browser in the application's context. A public PoC reference exists but is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Sourcecodester Markdown to HTML Converter v1.0 renders attacker-supplied Markdown into HTML without neutralizing embedded markup, so crafted content in the 'Markdown Input' field can execute arbitrary JavaScript in the browser of whoever converts it. The attack is gated by user interaction: the victim must paste or load the crafted Markdown and then click 'Convert to HTML', which is why the assessed vector carries UI:R and a changed scope (S:C) at a medium 6.1 score. Only a public PoC reference has been published (not verified as working exploit code); there is no KEV listing and no confirmed active exploitation, and the overall risk picture points to a low-priority issue despite the medium CVSS score.
RemediationAI
No vendor-released patch or fixed version was identified at time of analysis, and the upstream project page (https://www.sourcecodester.com/php/18295/markdown-html-converter-using-php-and-javascript-source-code.html) is a code-distribution listing rather than a patched release, so operators must remediate in their own deployment. The direct fix is to sanitize the conversion output: HTML-encode the generated markup, or swap in a Markdown parser configured with raw HTML disabled, so that tags and script content in the input are rendered as text - the trade-off is that legitimate inline HTML in Markdown will stop working. If the application must stay as-is, restrict it to local or internal use and do not feed it Markdown from untrusted sources; because the exploit path requires a victim to paste attacker content and press 'Convert to HTML', preventing untrusted input from reaching the field removes the trigger, at the cost of usability for shared or demo instances. A public PoC reference exists at https://github.com/ChuckBartowski7/Vulnerability-Research/blob/main/CVE-2025-60312/README.md (not verified as working exploit code) and can be used to validate any sanitization change before redeployment.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-79 cross-site scripting weakness in the client-side Markdown-to-HTML conversion logic of a small PHP/JavaScript sample application distributed by Sourcecodester. Because the converter builds HTML output from the user's Markdown input without encoding or sanitizing embedded HTML tags and JavaScript, markup typed into the input textarea is interpreted by the browser rather than displayed as text. CPE data pins the affected artifact to rems:markdown_to_html_converter:1.0. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) describes a network-reachable, low-complexity issue that requires the victim to perform an action and that can affect resources beyond the vulnerable component, with limited confidentiality and integrity impact and no availability impact; the mechanism by which the payload is delivered and triggered is the paste-and-convert workflow described above, and the sources do not describe a stored or persistent vector. The trigger specifics beyond that input-to-output rendering path are not described in the available sources.
Know when Markdown To Html Converter gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Reflected/client-side XSS: network-reachable with no auth (PR:N) but requires the victim to click Convert (UI:R); script runs in browser context (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB