# CVE-2025-46654: CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by upload…

- 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.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-04-26T00:00:00.000Z
- Modified: 2026-06-17T09:26:46.870Z
- Weaknesses: CWE-424
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- HackMD CodiMD: before 2.2.1; up to 2.2.0

## References

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

## Sources

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

---

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