Skip to content

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 uploading a .html file that references an uploaded .js file.

MediumCVSS 4.9 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
hackmd codimd < 2.2.1; <= 2.2.0 2.2.1 Fixed

Affected products

ProductAffected versionsFixed in
hackmd codimd < 2.2.1 2.2.1
hackmd codimd <= 2.2.0 No fix listed

References