Cross-site scripting in HedgeDoc - CVE-2026-58487

 

Cross-site scripting in HedgeDoc - CVE-2026-58487

Published: November 11, 2026


Vulnerability identifier: #VU165812
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-58487
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject stored HTML into pages viewed by other users, alter page content, and embed attacker-controlled resources.

The vulnerability exists due to improper escaping of email-derived display names in HedgeDoc's publish and slide views and collaborative editor when rendering user information. A remote user can register a specially crafted email address containing a quoted-string local-part that is reused as a display name to break out of an HTML attribute and inject arbitrary markup into pages viewed by other users.

The deployed Content-Security-Policy prevented straightforward inline JavaScript execution but still allowed injected HTML to embed cross-origin iframes.


Affected software

HedgeDoc

How to mitigate CVE-2026-58487

Install security update from vendor's website.

HedgeDoc - update to 1.11.0

External References

Related Security Bulletins