CVE-2021-29503: HedgeDoc - Stored XSS
- Cve: CVE-2021-29503
- Name: HedgeDoc - Stored XSS
- Description: 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.
- Impact: Attackers can execute arbitrary JavaScript in note pages, potentially leading to session hijacking or malicious actions on behalf of users.
- Remediation: Update to version 1.8.2 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs write access to notes
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01037
- Epss percentile: 0.64762
- Assignee: [email protected]
- Published at: 2021-05-19T20:15:07Z
- Age in days: 2015
- Modified at: 2026-06-17T03:47:47Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29503
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page |
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/hedgedoc/hedgedoc/commit/01dad5821ee28377ebe640c6c72c3e0bb0d51ea7 | Patch, Third Party Advisory |
| https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-gjg7-4j2h-94fq | Patch, Third Party Advisory |
| https://github.com/hedgedoc/hedgedoc/releases/tag/1.8.2 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| hedgedoc:hedgedoc | < 1.8.2 | no | nvd | /v1/products/hedgedoc/hedgedoc |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| hedgedoc/hedgedoc | commit, releases, security_advisory | yes | /v1/repositories/hedgedoc/hedgedoc |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 505
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports