CVE-2026-58486
Deferred Deferred - Pending Action

YAML Alias Bomb DoS in HedgeDoc

Vulnerability report for CVE-2026-58486, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-13

Last updated on: 2026-07-14

Assigner: GitHub, Inc.

Description

HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to version 1.11.0, HedgeDoc was vulnerable to a YAML alias bomb due to unsafe processing of the note frontmatter. HedgeDoc parsed frontmatter with js-yaml.load (js-yaml v3) via @hedgedoc/meta-marked, which resolved YAML anchor aliases. A compact malicious payload could therefore expand into a huge object structure, consuming excessive CPU. This expansion ran on every request to the publish view (/s/<shortid>) and, when placed under the opengraph key, the editor view (/<noteId>). A ten-level alias bomb could block the single Node.js event loop for roughly 235 seconds per request, causing concurrent requests to hang or drop and rendering the instance unavailable (DoS). Because the note was stored in the database, the impact survived process restarts until the note was removed. toobusy-js did not reliably mitigate the worst cases, as the event loop was saturated before the middleware could respond. This issue was fixed in version 1.11.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-13
Last Modified
2026-07-14
Generated
2026-08-03
AI Q&A
2026-07-14
EPSS Evaluated
2026-08-01
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
hedgedoc hedgedoc to 1.11.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-409 The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-58486 is a vulnerability in HedgeDoc, an open-source real-time collaborative markdown notes application. The issue involves a YAML alias bomb caused by unsafe processing of note frontmatter.

HedgeDoc used js-yaml.load (version 3) via @hedgedoc/meta-marked to parse frontmatter, which resolved YAML anchor aliases. A malicious payload could exploit this by creating a compact YAML structure that expands into a massive object, consuming excessive CPU resources.

This expansion occurred on every request to the publish view (/s/<shortid>) and, if placed under the opengraph key, the editor view (/<noteId>). A ten-level alias bomb could block the Node.js event loop for about 235 seconds per request, causing concurrent requests to fail or hang, leading to a denial-of-service (DoS) condition.

The impact persisted even after process restarts because the malicious note was stored in the database until manually removed. Mitigation tools like toobusy-js were ineffective in the worst cases because the event loop was saturated before the middleware could respond.

This issue was fixed in HedgeDoc version 1.11.0.

Detection Guidance

Detecting this vulnerability on your network or system involves checking for signs of exploitation or the presence of malicious YAML alias bombs in HedgeDoc notes. Since the vulnerability is triggered by crafted YAML frontmatter in notes, you can inspect the database for suspicious notes or monitor for unusual CPU spikes when accessing specific note endpoints.

  • Check the HedgeDoc database for notes containing YAML frontmatter with anchor aliases. For example, query the database for notes with frontmatter that includes patterns like '&anchor' or '*alias'.
  • Monitor CPU usage on the HedgeDoc server. A sudden and sustained spike in CPU usage when accessing the publish view (/s/<shortid>) or editor view (/<noteId>) may indicate exploitation.
  • Review HedgeDoc logs for repeated access to the same note endpoints, especially if accompanied by high CPU usage or timeouts.
  • If you have access to the HedgeDoc instance, manually inspect notes with large or complex frontmatter for suspicious YAML structures.
Impact Analysis

If you are using a vulnerable version of HedgeDoc (prior to 1.11.0), this vulnerability can impact you in the following ways:

  • Denial-of-Service (DoS): An attacker could render your HedgeDoc instance unavailable by sending a specially crafted note. This would block the Node.js event loop, causing legitimate requests to hang or fail.
  • Resource Exhaustion: The attack consumes excessive CPU, which could slow down or crash your server, affecting all users of the instance.
  • Persistent Impact: Since the malicious note is stored in the database, the DoS condition could persist even after restarting the application until the note is manually removed.
  • Disruption of Collaboration: If HedgeDoc is used for real-time collaboration, the attack could disrupt ongoing work and prevent users from accessing or editing notes.
Compliance Impact

This vulnerability could impact compliance with common standards and regulations in the following ways:

  • Availability Requirements: Many regulations, such as GDPR (Article 32) and HIPAA (Security Rule), require ensuring the availability of systems processing personal or sensitive data. A successful DoS attack exploiting this vulnerability could violate these requirements by making the system unavailable.
  • Incident Response: Regulations like GDPR (Article 33) and HIPAA require timely reporting of security incidents that affect personal data. If this vulnerability is exploited, it may trigger incident response obligations, especially if the attack disrupts access to sensitive information.
  • Risk Management: Standards such as ISO 27001 and frameworks like NIST CSF emphasize identifying and mitigating risks to information security. Failure to patch this vulnerability could be seen as a lapse in risk management, potentially leading to non-compliance.

However, the specific impact on compliance depends on how HedgeDoc is used in your environment. If it processes or stores regulated data (e.g., personal data under GDPR or protected health information under HIPAA), the risk of non-compliance is higher.

Mitigation Strategies

To mitigate this vulnerability, follow these immediate steps:

  • Upgrade HedgeDoc to version 1.11.0 or later, as this version includes a fix for the YAML alias bomb vulnerability.
  • If upgrading is not immediately possible, remove or quarantine any notes suspected of containing malicious YAML frontmatter. This can be done by deleting the notes from the database or moving them to a secure location for further analysis.
  • Restrict access to the HedgeDoc instance to trusted users only, especially the publish and editor views, to prevent exploitation by unauthorized parties.
  • Monitor the HedgeDoc server for unusual activity, such as high CPU usage or repeated access to specific notes, and investigate any anomalies.
  • Consider implementing rate limiting or request throttling to reduce the impact of potential denial-of-service attacks targeting this vulnerability.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58486. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart