Read the docs
TI-2025-29349 Aliases CVE-2025-46654GHSA-4r7r-xfq3-2r3v

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

VendorProductAffected versionsFixed inStatusSource
HackMDCodiMDbefore 2.2.12.2.1Patch availableCNA
  • CodiMD VendorHackMD Affected before 2.2.1 Fixed in 2.2.1 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*up to 2.2.0VulnerableHackMD
  • cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:* Versions up to 2.2.0 Vulnerable ·HackMD

Remediation

  • Fix · CNA CodiMD (HackMD) Fixed in 2.2.1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-46654
  2. 2026-10-03 Alias added: GHSA-4r7r-xfq3-2r3v

References

  • 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