# CVE-2025-46655: CodiMD through 2.5.4 has a CSP-based protection mechanism against XSS through uploaded SVG documents containing JavaScript, but it can be b…

- Severity: Medium 4.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/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.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-26T00:00:00.000Z
- Modified: 2026-06-17T09:26:46.997Z
- Weaknesses: CWE-424
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- HackMD CodiMD: up to 2.5.4

## References

- <https://github.com/hackmdio/codimd/issues/1910> (exploit)
- <https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md>

## Sources

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

---

Page: https://cve.day/CVE-2025-46655 · Whole record: https://cve.day/CVE-2025-46655.json · Rebuilt by cve.day 2026-11-25T22:58:56.944Z
