{"id":"CVE-2024-38354","state":"PUBLISHED","title":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","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.","publishedAt":"2024-07-10T19:49:55.838Z","updatedAt":"2024-08-02T04:04:25.208Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["hackmdio codimd"],"affected":[{"vendor":"hackmdio","product":"codimd","versions":[{"version":"< 2.5.4","status":"affected"}]}],"references":["https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/38xxx/CVE-2024-38354.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-38354","state":"PUBLISHED","datePublished":"2024-07-10T19:49:55.838Z","dateUpdated":"2024-08-02T04:04:25.208Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-06-14T14:16:16.464Z"},"containers":{"cna":{"title":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","descriptions":[{"lang":"en","value":"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":[{"vendor":"hackmdio","product":"codimd","versions":[{"version":"< 2.5.4","status":"affected"}]}],"references":[{"url":"https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9","name":"https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-10T19:49:55.838Z"},"source":{"advisory":"GHSA-22jv-vch8-2vp9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"hackmd","product":"codimd","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"2.5.4","versionType":"custom"}],"cpes":["cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-11T15:02:10.656095Z","id":"CVE-2024-38354","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-11T15:04:18.412Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9","name":"https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:04:25.208Z"}}]}}}