CVE-2025-46655 Cross-site scripting in CodiMD
Attackers can bypass CSP protections to execute JavaScript via uploaded SVGs when using external storage like AWS S3.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-46655?
CVE-2025-46655 is a medium-severity cross-site scripting vulnerability in HackMD CodiMD, published on 26 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-424
Which versions are affected by CVE-2025-46655?
How do I fix CVE-2025-46655?
No fix has been published for CVE-2025-46655 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-46655 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46655 exists.
Sources
Also known as GHSA-64gv-p96g-gqxj.