{"id":"CVE-2025-46655","state":"PUBLISHED","title":"CodiMD through 2.5.4 has a CSP-based protection mechanism against XSS through uploaded SVG documents containing JavaScript, but it can be bypassed in certain cases of different-ori","description":"CodiMD through 2.5.4 has a CSP-based protection mechanism against XSS through uploaded SVG documents containing JavaScript, but it can be bypassed in certain cases of different-origin file storage, such as AWS S3. NOTE: it can be considered a user error if AWS is employed for hosting untrusted JavaScript content, but the selected architecture within AWS does not have components that are able to insert Content-Security-Policy headers.","publishedAt":"2025-04-26T00:00:00.000Z","updatedAt":"2025-04-29T15:22:43.429Z","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":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.5.4","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-46655.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-46655","state":"PUBLISHED","datePublished":"2025-04-26T00:00:00.000Z","dateUpdated":"2025-04-29T15:22:43.429Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2025-04-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"CodiMD through 2.5.4 has a CSP-based protection mechanism against XSS through uploaded SVG documents containing JavaScript, but it can be bypassed in certain cases of different-origin file storage, such as AWS S3. NOTE: it can be considered a user error if AWS is employed for hosting untrusted JavaScript content, but the selected architecture within AWS does not have components that are able to insert Content-Security-Policy headers."}],"affected":[{"vendor":"HackMD","product":"CodiMD","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.5.4","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:38:04.712Z"},"tags":["disputed"],"x_generator":{"engine":"enrichogram 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*","versionEndIncluding":"2.5.4"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/hackmdio/codimd/issues/1910","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-29T14:05:51.667886Z","id":"CVE-2025-46655","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:43.429Z"}}]}}}