# CVE-2024-38354: Cross-site Scripting in Hackmd.io Notes lead by HTML Injection

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-10T19:49:55.838Z
- Modified: 2026-06-17T07:39:58.870Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- hackmdio codimd: < 2.5.4
- hackmd codimd: before 2.5.4

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2024-38354](https://www.cve.org/CVERecord?id=CVE-2024-38354), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-38354](https://nvd.nist.gov/vuln/detail/CVE-2024-38354), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38354 · Whole record: https://cve.day/CVE-2024-38354.json · Rebuilt by cve.day 2026-11-25T22:58:42.755Z
