8.1high
Cross-site Scripting in Hackmd.io Notes lead by HTML Injection
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| hackmdio codimd | < 2.5.4 | CVE List |
| hackmd codimd | before 2.5.4 | CVE List, NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
CodiMD permite notas de markdown colaborativas en tiempo real en todas las plataformas. La función de cuaderno de Hackmd.io permite la representación de etiquetas "HTML" de iframe con un atributo "name" incorrectamente sanitizado. Esta vulnerabilidad permite a los atacantes realizar ataques de cross-site scripting (XSS) mediante destrucción de DOM. Esta vulnerabilidad se solucionó en 2.5.4.
References
| https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38354 changed 2024-08-02 | CVE Terms of Use |
| NVD | CVE-2024-38354 changed 2026-06-17 | Public domain |