Cross-site scripting in HedgeDoc - CVE-2021-21259

 

Cross-site scripting in HedgeDoc - CVE-2021-21259

Published: January 15, 2021 / Updated: April 25, 2026


Vulnerability identifier: #VU127918
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Green
CVE-ID: CVE-2021-21259
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
HedgeDoc
Software vendor:
HedgeDoc

Description

The vulnerability allows a remote attacker to execute arbitrary JavaScript in a victim's browser.

The vulnerability exists due to cross-site scripting in slide mode when rendering a crafted note. A remote attacker can inject arbitrary JavaScript into a note to execute arbitrary JavaScript in a victim's browser.

Depending on the instance configuration, authentication may not be required to create or edit notes.


Remediation

Install security update from vendor's website.

External links