CVE-2021-29503
mediumpriority · track · 24EPSS 0.010 · 64 %ileEUUSEPSS · scored 2026-10-27
HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a cross-site scripting attack using the YAML-metadata of a note. An attacker with write access to a note can embed HTML tags in the Open Graph metadata section of the note, resulting in the frontend rendering the script tag as part of the `<head>` section. Unless your instance prevents guests from editing notes, this vulnerability allows unauthenticated attackers to inject JavaScript into notes that allow guest edits. If your instance prevents guests from editing notes, this vulnerability allows authenticated attackers to inject JavaScript into any note pages they have write-access to. This vulnerability is patched in version 1.8.2. As a workaround, one can disable guest edits until the next update.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.3–8.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://github.com/hedgedoc/hedgedoc/commit/01dad5821ee28377ebe640c6c72c3e0bb0d51ea7cnnvd
- https://github.com/hedgedoc/hedgedoc/releases/tag/1.8.2cnnvd
- https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-gjg7-4j2h-94fqcnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021051220cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021051926cnnvd
- https://github.com/hedgedoc/hedgedoc/commit/01dad5821ee28377ebe640c6c72c3e0bb0d51ea7enisa_euvd
- https://github.com/hedgedoc/hedgedoc/releases/tag/1.8.2enisa_euvd
- https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-gjg7-4j2h-94fqenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan