{"id":"CVE-2025-46654","state":"PUBLISHED","title":"CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by uploading a .html file that references an uploa","description":"CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by uploading a .html file that references an uploaded .js file.","publishedAt":"2025-04-26T00:00:00.000Z","updatedAt":"2025-04-29T15:22:49.333Z","severity":{"score":4.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","source":"mitre"},"assigner":"mitre","products":["HackMD CodiMD"],"affected":[{"vendor":"HackMD","product":"CodiMD","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.2.1","versionType":"semver"}]}],"references":["https://github.com/hackmdio/codimd/issues/1910","https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md"],"weaknesses":["CWE-424"],"ingestedAt":"2026-10-29T20:09:17.366Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/46xxx/CVE-2025-46654.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-46654","state":"PUBLISHED","datePublished":"2025-04-26T00:00:00.000Z","dateUpdated":"2025-04-29T15:22:49.333Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2025-04-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by uploading a .html file that references an uploaded .js file."}],"affected":[{"vendor":"HackMD","product":"CodiMD","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.2.1","versionType":"semver"}]}],"references":[{"url":"https://github.com/hackmdio/codimd/issues/1910"},{"url":"https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md"}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":4.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-424","description":"CWE-424 Improper Protection of Alternate Path","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2025-04-26T20:36:57.216Z"},"x_generator":{"engine":"enrichogram 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*","versionEndExcluding":"2.2.1"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/hackmdio/codimd/issues/1910","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-29T13:47:30.446573Z","id":"CVE-2025-46654","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-29T15:22:49.333Z"}}]}}}