CVE-2025-46654
4.9medium
CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by upload…
- Severity
- 4.9medium CVSS:3.1 by mitre
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| HackMD CodiMD | before 2.2.1, up to 2.2.0 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
CodiMD hasta la versión 2.2.0 tiene un mecanismo de protección basado en CSP contra XSS a través de contenido JavaScript cargado, pero se puede evitar cargando un archivo .html que haga referencia a un archivo .js cargado.
References
| https://github.com/hackmdio/codimd/issues/1910 | exploit, issue-tracking | |
| https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-46654 changed 2025-04-29 | CVE Terms of Use |
| NVD | CVE-2025-46654 changed 2026-06-17 | Public domain |