CVE-2024-38354: CodiMD allows realtime collaborative markdown notes on all platforms
CVE-2024-38354 is a high-severity flaw (CVSS 8.1) affecting codimd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
CodiMD allows realtime collaborative markdown notes on all platforms. The notebook feature of Hackmd.io permits the rendering of iframe `HTML` tags with an improperly sanitized `name` attribute. This vulnerability enables attackers to perform cross-site scripting (XSS) attacks via DOM clobbering. This vulnerability is fixed in 2.5.4.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 64%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2024-07-10 |
| 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-2024-38354?
codimd: upgrade to 2.5.4. Exact commands for each OS are on this page.
Is CVE-2024-38354 being exploited?
CVE-2024-38354 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-2024-38354 affect?
CVE-2024-38354 affects codimd. Severity is high (CVSS 8.1). CodiMD allows realtime collaborative markdown notes on all platforms. The notebook feature of Hackmd.io permits the rendering of iframe `HTML` tags with an improperly sanitized `name` attribute. This vulnerability enables attackers to perfo
How urgent is CVE-2024-38354?
Priority 42/100. High severity; Public exploit reference
Related CVEs
- CVE-2025-46654 MEDIUM 4.9 UPGRADE CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but
- CVE-2024-38353 MEDIUM 5.3 UPGRADE CodiMD allows realtime collaborative markdown notes on all platforms
- CVE-2024-22778 HIGH 7.5 UPGRADE HackMD CodiMD <2.5.2 is vulnerable to Denial of Service.