Description
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to version 1.11.0, due to unsafe handling of the local-part of registered email addresses, HedgeDoc was vulnerable to stored HTML Injection through its publish and slide views. An attacker could register a specially crafted email address and inject arbitrary HTML into pages viewed by other users. HedgeDoc accepted RFC 5321 quoted-string local-parts in email addresses during registration. The local-part was then reused as the user's display name without escaping and rendered into HTML in multiple places, including publish and slide views as well as the collaborative editor. An attacker could break out of an HTML attribute and inject arbitrary markup into the page. While the deployed Content-Security-Policy prevented straightforward inline JavaScript execution, the injected HTML was still sufficient to alter page content and embed attacker-controlled resources such as cross-origin iframes. This issue was fixed in version 1.11.0.
Published: 2026-07-13
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

HedgeDoc allowed the local‑part of user email addresses to be registered using RFC5321 quoted‑string syntax. The value was later reused directly as the user’s display name in HTML without escaping, a flaw that corresponds to CWE‑116 and further enables the classic DOM‑based XSS flaw identified as CWE‑79. This made it possible for an attacker to register a malicious email address, store arbitrary HTML fragments via the publish and slide views, and later have this markup rendered on pages viewed by other users. The injected markup could break out of HTML attributes and insert custom elements, including cross‑origin iframes; while inline JavaScript execution was mitigated by a deployed Content‑Security‑Policy, the ability to alter page content and embed external resources still constitutes a visible threat.

Affected Systems

The vulnerability existed in HedgeDoc prior to version 1.11.0. All installations running HedgeDoc version 1.10.x or earlier, using the default user interface for publishing and slides, are affected. The vendor is the HedgeDoc open source project; the impacted product is the HedgeDoc collaborative markdown editor.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate impact. The EPSS score of <1% suggests that the likelihood of exploitation is very low, and the vulnerability is not listed in the CISA KEV catalog. The exploit path requires an attacker to register a new account with a crafted email address, after which any existing or future documents that reference that user will render the injected markup for all viewers. The attack is straightforward once the conditions are met and could have non‑repudiable effects on user experience and trust.

Generated by OpenCVE AI on July 31, 2026 at 11:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade HedgeDoc to version 1.11.0 or later
  • Recreate any accounts whose email addresses include quoted local‑parts to ensure display names are properly escaped
  • Inventory existing documents and users for injected HTML, and if necessary clean up or delete affected items

Generated by OpenCVE AI on July 31, 2026 at 11:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 15 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Hedgedoc
Hedgedoc hedgedoc
Vendors & Products Hedgedoc
Hedgedoc hedgedoc

Mon, 13 Jul 2026 22:15:00 +0000

Type Values Removed Values Added
Description HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to version 1.11.0, due to unsafe handling of the local-part of registered email addresses, HedgeDoc was vulnerable to stored HTML Injection through its publish and slide views. An attacker could register a specially crafted email address and inject arbitrary HTML into pages viewed by other users. HedgeDoc accepted RFC 5321 quoted-string local-parts in email addresses during registration. The local-part was then reused as the user's display name without escaping and rendered into HTML in multiple places, including publish and slide views as well as the collaborative editor. An attacker could break out of an HTML attribute and inject arbitrary markup into the page. While the deployed Content-Security-Policy prevented straightforward inline JavaScript execution, the injected HTML was still sufficient to alter page content and embed attacker-controlled resources such as cross-origin iframes. This issue was fixed in version 1.11.0.
Title HedgeDoc: Stored HTML injection via email local-part
Weaknesses CWE-116
CWE-79
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N'}


Subscriptions

Hedgedoc Hedgedoc
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T14:28:06.634Z

Reserved: 2026-06-30T20:21:25.812Z

Link: CVE-2026-58487

cve-icon Vulnrichment

Updated: 2026-07-15T14:27:59.565Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T11:15:05Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')