Skip to main content

Markdown to HTML Converter CVE-2025-60312

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-07 cve@mitre.org
6.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted Markdown link to victim
  2. Delivery
    Victim loads payload into input field
  3. Exploit
    Victim clicks 'Convert to HTML'
  4. Execution
    Injected JavaScript executes in browser
  5. Impact
    Session/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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Rare
Sourcecodester hobby/tutorial PHP sample, no enterprise production footprint
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

cpe:2.3:a:rems:markdown_to_html_converter:1.0:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy