CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded…
Priority MEDIUM 56CWE-424Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00263 18th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed CodiMD (HackMD): 2.2.1
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA CodiMD (HackMD) Fixed in 2.2.1
Timeline
- 2026-10-02 Threatist record created from CVE-2025-46654
- 2026-10-03 Alias added: GHSA-4r7r-xfq3-2r3v
References
More HackMD Codimd vulnerabilities
- TI-2024-25612 Cross-site Scripting in Hackmd.io Notes lead by HTML Injection CVSS 3.1HIGH 8.1
- TI-2024-25611 CodiMD - Missing Image Access Controls and Unauthorized Image Access CVSS 3.1MEDIUM 5.3
- TI-2024-15132 HackMD CodiMD <2.5.2 is vulnerable to Denial of Service. CVSS 3.1HIGH 7.5
- TI-2019-11602 CodiMD 1.3.1, when Safari is used, allows XSS via an IFRAME element with… CVSS 3.1MEDIUM 6.1
Sources
- CVE-2025-46654 · CVE Program
- CVE-2025-46654 · NVD
- FIRST EPSS
- GHSA-4r7r-xfq3-2r3v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences