CVE-2025-46654: CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but
CVE-2025-46654 is a medium-severity flaw (CVSS 4.9) affecting codimd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 82%) |
| CISA exploited list | No |
| Weakness | CWE-424 |
| Published | 2025-04-26 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-46654?
codimd: upgrade to newer than 2.2.0. Exact commands for each OS are on this page.
Is CVE-2025-46654 being exploited?
CVE-2025-46654 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-46654 affect?
CVE-2025-46654 affects codimd. Severity is medium (CVSS 4.9). 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.
How urgent is CVE-2025-46654?
Priority 27/100. Public exploit reference
Related CVEs
- CVE-2024-38354 HIGH 8.1 UPGRADE CodiMD allows realtime collaborative markdown notes on all platforms
- CVE-2024-38353 MEDIUM 5.3 UPGRADE CodiMD allows realtime collaborative markdown notes on all platforms