Cross-site scripting in HedgeDoc - CVE-2026-25642
Published: April 25, 2026
HedgeDoc
Detailed vulnerability description
The vulnerability allows a remote attacker to host malicious interactive web content that can facilitate phishing.
The vulnerability exists due to cross-site scripting in the /uploads/ endpoint when serving uploaded SVG files without the intended security headers. A remote attacker can upload a specially crafted SVG file and directly link to it to host malicious interactive web content that can facilitate phishing.
This impacts instances using the filesystem backend for media uploads, and user interaction is required for a victim to open the link.