Read the docs
TI-2021-10211 Aliases CVE-2021-29503

Improper Neutralization of Script-Related HTML Tags in Notes

Priority LOW 37CWE-80Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-80.

Summary

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.

Why it matters now

EPSS 0.01037 64th percentileScored 2026-11-07
Fix Fixed hedgedoc (hedgedoc): 1.8.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
hedgedochedgedocbefore 1.8.21.8.2Patch availableCNA
  • hedgedoc Vendorhedgedoc Affected before 1.8.2 Fixed in 1.8.2 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:*before 1.8.2Vulnerablehedgedoc
  • cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:* Versions before 1.8.2 Vulnerable ·hedgedoc

Remediation

  • Fix · CNA hedgedoc (hedgedoc) Fixed in 1.8.2

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-29503

References

  • TI-2023-19867 HedgeDoc API allows to hide existing notes CVSS 3.1HIGH 8.2
  • TI-2024-30379 MySQL & free URL mode allows to hide existing notes in hedgedoc CVSS 3.1MEDIUM 6.5
  • TI-2021-10188 PDF export allows arbitrary file reads CVSS 3.1CRITICAL 10.0
  • TI-2020-16108 Stored XSS in mermaid diagrams CVSS 3.1HIGH 8.7
  • TI-2021-16561 XSS vector in slide mode speaker-view CVSS 3.1HIGH 8.1
  • TI-2020-16107 Arbitary file upload CVSS 3.1HIGH 7.5
See all 12 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences