CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by uploading a .html file that references an uploaded .js file.
{
"cwe_ids": [
"CWE-424"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46654.json",
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "2.2.1"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "2.2.1"
}
],
"source": "CPE_FIELD"
}
]
}{
"cpe": "cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0"
},
{
"last_affected": "2.2.0"
}
],
"source": [
"DESCRIPTION",
"CPE_RANGE"
]
}