Cross-site scripting in HedgeDoc - #VU127926
Published: April 25, 2026
HedgeDoc
Detailed vulnerability description
The vulnerability allows a remote user to execute JavaScript in the context of the instance's domain.
The vulnerability exists due to improper neutralization of input during web page generation in SVG upload handling when including an uploaded SVG file into a note using iframe tags. A remote user can upload a specially crafted SVG file and include it in a note to execute JavaScript in the context of the instance's domain.
This impacts instances with SVG uploading enabled, especially when using the local filesystem backend.