Description
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.
References (2)
Core 2
Core References
Exploit, Issue Tracking
https://github.com/hackmdio/codimd/issues/1910
Exploit, Third Party Advisory
https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md
Scores
CVSS v3
4.9
EPSS
0.0016
EPSS Percentile
36.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-424
Status
published
Products (1)
hackmd/codimd
< 2.2.0
Published
Apr 26, 2025
Tracked Since
Feb 18, 2026