CVE-2026-58487: HedgeDoc: Stored HTML injection via email local-part
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to version 1.11.0, due to unsafe handling of the local-part of registered email addresses, HedgeDoc was vulnerable to stored HTML Injection through its publish and slide views. An attacker could register a specially crafted email address and inject arbitrary HTML into pages viewed by other users. HedgeDoc accepted RFC 5321 quoted-string local-parts in email addresses during registration. The local-part was then reused as the user's display name without escaping and rendered into HTML in multiple places, including publish and slide views as well as the collaborative editor. An attacker could break out of an HTML attribute and inject arbitrary markup into the page. While the deployed Content-Security-Policy prevented straightforward inline JavaScript execution, the injected HTML was still sufficient to alter page content and embed attacker-controlled resources such as cross-origin iframes. This issue was fixed in version 1.11.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
HedgeDocto a version that resolves this vulnerability.Fixed in 1.11.0 - Operational
After upgrading to HedgeDoc 1.11.0, review any pages that may have been affected in publish/slide views or the collaborative editor and remove/refresh any attacker-injected content from affected notes.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58487?
CVE-2026-58487 has a medium severity rating of 5.1 on the CVSS scale.
How do I fix CVE-2026-58487?
To fix CVE-2026-58487, upgrade HedgeDoc to version 1.11.0 or later.
What type of vulnerability is CVE-2026-58487?
CVE-2026-58487 is classified as a stored HTML injection vulnerability.
Who is affected by CVE-2026-58487?
Users of HedgeDoc versions prior to 1.11.0 are affected by CVE-2026-58487.
What can attackers achieve with CVE-2026-58487?
Attackers can exploit CVE-2026-58487 to execute stored HTML injection via the publish and slide views.