{"id":"CVE-2024-38354","summary":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","details":"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.","aliases":["GHSA-22jv-vch8-2vp9"],"modified":"2026-08-12T03:51:09.722981239Z","published":"2024-07-10T19:49:55.838Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38354.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38354.json"},{"type":"ADVISORY","url":"https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38354"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hackmdio/codimd","events":[{"introduced":"0"},{"fixed":"da511d0b1661e1f496e700bda35dc2b127dd456e"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.5.4"}]}}],"versions":["2.5.3","2.5.2","2.5.1","2.5.0","2.4.2","2.4.1","2.4.0","2.3.2","2.3.1","2.3.0","2.2.0","2.1.0","2.0.1","2.0.0","1.4.1","1.4.0","1.3.1","1.3.0","1.2.1","1.2.0","1.1.1-ce","1.1.0-ce","1.0.1-ce","1.0.0-ce","0.5.0","0.4.6","0.4.5","0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","v0.3.4","v0.3.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38354.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}