HedgeDoc
CVE-2026-58488
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-facing HedgeDoc instance
-
DeliveryCraft HTTP request with spoofed cf-connecting-ip header
-
ExploitApplication accepts header as authoritative client IP
-
ExecutionRate limiter attributes each request to distinct IP
-
PersistBypass per-IP lockout threshold
-
ImpactExecute unlimited login or register requests
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must run HedgeDoc on a version prior to 1.11.0 and must be reachable over a network by the attacker. No authentication is required and no special network position (such as a man-in-the-middle position) is needed - the attacker simply includes an arbitrary cf-connecting-ip HTTP header in standard HTTP requests. The bypass applies specifically to the /login and /register routes where rate-limiting is enforced. Exploitation is limited in direct impact to bypassing rate limits; it does not provide direct code execution, data exfiltration, or privilege escalation on its own. Instances not exposed to the internet or protected by upstream rate-limiting controls (WAF, reverse proxy header stripping) face reduced real-world risk. Public registration being enabled increases severity for the account-creation abuse vector. |
| Impact | The CVSS 4.0 score of 6.9 with AV:N/AC:L/AT:N/PR:N/UI:N correctly reflects trivial network exploitation with no prerequisites, but the impact sub-scores (VA:L, all others N) understate the practical security consequence for internet-facing deployments. Bypassing login rate-limiting enables unconstrained credential-stuffing, which can lead to full account takeover - an outcome not captured by the raw availability impact label. The mass-registration capability can pollute user databases, enable spam campaigns from the platform, or exhaust storage. The attack requires only the ability to set an HTTP header and is fully automatable, making it trivially scalable. No CISA KEV listing and no known POC code exist at time of analysis, indicating no confirmed in-the-wild exploitation; EPSS data was not available in the provided intelligence. Deployments behind a WAF or reverse proxy that strips untrusted headers upstream are partially mitigated, but the application itself should not be relied upon as a control point. Overall, this is a genuine priority for any internet-exposed HedgeDoc instance with public registration or publicly known accounts. |
| Exploit ScenarioDerived | An attacker scripts HTTP POST requests to a public HedgeDoc instance's /login endpoint, incrementing the cf-connecting-ip header value (e.g., cycling through 1.0.0.1, 1.0.0.2, 1.0.0.3) with each attempt. The application rate limiter records a new unique IP per request and never blocks the attacker's actual source address, permitting thousands of credential-stuffing attempts per minute against known email addresses. The same technique applied to /register allows bulk creation of accounts for spam abuse. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Rate-limiting bypass in HedgeDoc prior to 1.11.0 permits unauthenticated remote attackers to circumvent brute-force protections on the /login and /register endpoints by injecting arbitrary cf-connecting-ip headers, cycling apparent source IPs per request. This enables unlimited credential-stuffing attacks against login and bulk registration of throwaway accounts. No public exploit code identified at time of analysis; the issue is confirmed fixed in version 1.11.0 per the vendor's GitHub Security Advisory.
RemediationAI
Upgrade HedgeDoc to version 1.11.0 or later, which fixes the issue by gating cf-connecting-ip header trust to requests that can be verified as originating from Cloudflare's infrastructure. The authoritative advisory is at https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-2f9f-w8xq-276v. If immediate upgrade is not possible, configure a reverse proxy (e.g., nginx) upstream of HedgeDoc to unconditionally strip any incoming cf-connecting-ip headers before they reach the application; note that this breaks legitimate IP attribution for deployments genuinely behind Cloudflare, so the header should be re-injected only by a trusted Cloudflare-verified path. As an additional compensating control, disabling public registration eliminates the mass account-creation attack surface entirely, though /login brute-force risk remains. Deploying network-layer rate limiting (WAF, fail2ban on the reverse proxy, or Cloudflare's own rate-limiting rules) upstream of the application provides defense-in-depth against the credential-stuffing risk independently of the application patch.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HedgeDoc is a Node.js-based open-source collaborative markdown note application. The vulnerability is rooted in CWE-290 (Authentication Bypass by Spoofing): the application consumed Cloudflare's cf-connecting-ip header - intended to convey the originating client IP when traffic passes through Cloudflare's proxy network - as the authoritative client IP for rate-limiting purposes without verifying that the request actually transited Cloudflare infrastructure. Because HTTP headers are attacker-controlled, any client could inject a cf-connecting-ip header with an arbitrary value, causing the rate limiter to record a different IP per request and never accumulate enough hits from a single apparent source to trigger a block. The affected CPE is cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:* covering all versions prior to 1.11.0.
Know when Hedgedoc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable with no auth or complexity required (AV:N/AC:L/PR:N/UI:N); limited integrity impact from mass account creation and limited availability impact from request flooding; no confidentiality impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Versions prior to 1.11.0 allowed attackers to circumvent the rate-limiting of the /login and /register routes by spoofing IP addresses. HedgeDoc instances checked for CloudFlare's cf-connecting-ip header and used that instead of the users real IP address, if the header was present even when the request did not originate from Cloudflare. This made it possible for an attacker to spam login requests or create multiple arbitrary accounts by sending another cf-connecting-ip header every few requests. The issue has been fixed in version 1.11.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 8.7), this vulnerabilit
HedgeDoc is software for creating real-time collaborative markdown notes. Rated high severity (CVSS 8.2), this vulnerabi
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.5), this
HedgeDoc is open source software which lets you create real-time collaborative markdown notes. Rated medium severity (CV
HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated critical severity (CVSS 10.0)
HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated medium severity (CVSS 5.8), t
Denial of service in HedgeDoc before 1.11.0 lets a user who can store a note crash the instance by embedding a YAML "ali
HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 7.5), this vulnerabilit
HedgeDoc's GitHub Gist export feature exposes private and protected note content to attacker-controlled GitHub accounts
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.4), this
HedgeDoc is a platform to write and share markdown. Rated medium severity (CVSS 6.1), this vulnerability is remotely exp
HedgeDoc is a platform to write and share markdown. Rated medium severity (CVSS 6.1), this vulnerability is remotely exp
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB