CVE-2025-32391 Details
Description
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to 1.10.3, a malicious SVG file uploaded to HedgeDoc results in the possibility of XSS when opened in a new tab instead of the editor itself. The XSS is possible by exploiting the JSONP capabilities of GitHub Gist embeddings. Only instances with the local filesystem upload backend or special configurations, where the uploads are served from the same domain as HedgeDoc, are vulnerable. This vulnerability is fixed in 1.10.3. When upgrading to HedgeDoc 1.10.3 is not possible, instance owners could add the following headers for all routes under /uploads as a first-countermeasure: Content-Disposition: attachment and Content-Security-Policy: default-src 'none'. Additionally, the external URLs in the script-src attribute of the Content-Security-Policy header should be removed.
A cross-site scripting (XSS) vulnerability has been identified in HedgeDoc versions prior to 1.10.3. This issue arises when a malicious SVG file is uploaded and then opened in a new browser tab, rather than within the HedgeDoc editor. The vulnerability exploits the JSONP functionality of GitHub Gist embeddings. It affects instances using the local filesystem upload method or specific configurations that serve uploads from the same domain as HedgeDoc.
Users can upgrade to HedgeDoc version 1.10.3 or later, where this vulnerability is fixed. If an immediate upgrade is not possible, instance owners can add specific headers to all routes under '/uploads' as a temporary measure. These headers should include 'Content-Disposition: attachment' and 'Content-Security-Policy: default-src 'none''. Additionally, remove external URLs from the 'script-src' directive of the Content-Security-Policy header.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hedgedoc hedgedoc | < 1.10.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Apr 10, 2025 | New CVE Received | [email protected] |