SecurityContext

CVE-2021-21259: HedgeDoc - Stored XSS

  • Cve: CVE-2021-21259
  • Name: HedgeDoc - Stored XSS
  • Description: HedgeDoc is open source software which lets you create real-time collaborative markdown notes. In HedgeDoc before version 1.7.2, an attacker can inject arbitrary JavaScript into a HedgeDoc note, which is executed when the note is viewed in slide mode. Depending on the configuration of the instance, the attacker may not need authentication to create or edit notes. The problem is patched in HedgeDoc 1.7.2. As a workaround, disallow loading JavaScript from 3rd party sites using the `Content-Security-Policy` header. Note that this will break some embedded content.
  • Impact: Attackers can execute arbitrary JavaScript in notes, potentially leading to session hijacking, data theft, or malicious actions on behalf of users.
  • Remediation: Update to version 1.7.2 or later. As a workaround, implement Content-Security-Policy to disallow loading JavaScript from third-party sites.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • 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.01369
  • Epss percentile: 0.72452
  • Assignee: [email protected]
  • Published at: 2021-01-22T17:15:12Z
  • Age in days: 2132
  • Modified at: 2026-06-17T03:35:08Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21259
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/hackmdio/codimd/issues/1648nvd2021-01-22

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/hackmdio/codimd/issues/1648Exploit, Patch, Third Party Advisory
https://github.com/hedgedoc/hedgedoc/commit/35b0d39a12aa35f27fba8c1f50b1886706e7efefPatch, Third Party Advisory
https://github.com/hedgedoc/hedgedoc/releases/tag/1.7.2Release Notes, Third Party Advisory
https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-44w9-vm8p-3cxwThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
hedgedoc:hedgedoc< 1.7.2nonvd/v1/products/hedgedoc/hedgedoc

Projects

RepositoryLink kindsIndexedUrl
hackmdio/codimdissuesyes/v1/repositories/hackmdio/codimd
hedgedoc/hedgedoccommit, fix, releases, security_advisoryyes/v1/repositories/hedgedoc/hedgedoc

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-01-22
  • Remote: yes
  • Exposed hosts: 505
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports