CVE-2026-58488
Deferred Deferred - Pending Action

IP Spoofing Bypass in HedgeDoc Rate Limiting

Vulnerability report for CVE-2026-58488, 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. 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.

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-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
CWE-290 This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

HedgeDoc is an open-source application for real-time collaborative markdown notes. The vulnerability in versions prior to 1.11.0 involves improper handling of IP address checks for rate-limiting on the /login and /register routes.

Attackers could bypass the rate-limiting mechanism by spoofing IP addresses. HedgeDoc instances checked for the CloudFlare-specific header 'cf-connecting-ip' and used it instead of the user's real IP address, even when the request did not originate from Cloudflare. This allowed attackers to send multiple login requests or create arbitrary accounts by sending a forged 'cf-connecting-ip' header with each request.

The issue was fixed in version 1.11.0, which ensures proper validation of the source of the 'cf-connecting-ip' header.

Detection Guidance

Detecting this vulnerability involves checking if your HedgeDoc instance is exposed to IP spoofing via the cf-connecting-ip header. Since the vulnerability allows attackers to bypass rate-limiting by spoofing IP addresses, you can look for signs of unusual activity in your logs.

  • Check your HedgeDoc logs for repeated login or registration attempts from the same IP address or multiple cf-connecting-ip headers in a short time frame. This may indicate an attempt to exploit the vulnerability.
  • Verify if your HedgeDoc instance is running a version prior to 1.11.0. You can do this by checking the version in the application's settings or by inspecting the source code if you have access.
  • Inspect incoming HTTP requests to your HedgeDoc instance for the presence of the cf-connecting-ip header, especially if the requests do not originate from Cloudflare. This can be done using network monitoring tools or by analyzing web server logs.

Example commands to check for suspicious activity in logs (adjust based on your logging setup):

  • grep 'cf-connecting-ip' /var/log/hedgedoc/access.log | awk '{print $1}' | sort | uniq -c | sort -nr (to count occurrences of the cf-connecting-ip header)
  • grep '/login' /var/log/hedgedoc/access.log | awk '{print $1}' | sort | uniq -c | sort -nr (to count login attempts by IP)
  • grep '/register' /var/log/hedgedoc/access.log | awk '{print $1}' | sort | uniq -c | sort -nr (to count registration attempts by IP)
Impact Analysis

If you are using an affected version of HedgeDoc (prior to 1.11.0), this vulnerability could have several impacts:

  • Attackers could spam your HedgeDoc instance with repeated login attempts, potentially leading to brute-force attacks to guess user credentials.
  • Attackers could create multiple arbitrary accounts on your instance, which might be used for malicious purposes such as spamming, phishing, or other abusive activities.
  • The excessive requests could degrade the performance of your HedgeDoc instance, leading to slower response times or service disruptions for legitimate users.

If your instance is exposed to the internet, the risk of exploitation increases, as attackers can target it remotely without authentication.

Compliance Impact

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

  • GDPR (General Data Protection Regulation): If attackers exploit this vulnerability to create unauthorized accounts or access user data, it could lead to unauthorized processing or exposure of personal data. This may violate GDPR principles such as data protection by design and default (Article 25) and security of processing (Article 32).
  • HIPAA (Health Insurance Portability and Accountability Act): If HedgeDoc is used to store or process protected health information (PHI) and attackers exploit this vulnerability to gain unauthorized access, it could result in a breach of PHI. This would violate HIPAA's Security Rule, which requires safeguards to protect the confidentiality, integrity, and availability of PHI.
  • Other standards: The vulnerability could also affect compliance with frameworks like ISO 27001, which requires organizations to implement controls to manage information security risks. Failure to address such vulnerabilities could result in non-compliance with risk management and access control requirements.

Organizations should assess whether this vulnerability could lead to unauthorized access or data breaches and take corrective actions, such as upgrading to the fixed version, to maintain compliance.

Mitigation Strategies

To mitigate this vulnerability, follow these immediate steps:

  • Upgrade your HedgeDoc instance to version 1.11.0 or later, as this version includes the fix for the IP spoofing issue.
  • If upgrading is not immediately possible, restrict access to the /login and /register routes to trusted IP addresses or networks using firewall rules or web server configurations.
  • Disable or modify the handling of the cf-connecting-ip header in your HedgeDoc configuration if your instance is not behind Cloudflare. Ensure that the header is only trusted when requests originate from Cloudflare's IP ranges.
  • Monitor your logs for suspicious activity, such as repeated login or registration attempts, and block IP addresses exhibiting such behavior.
  • Consider implementing additional rate-limiting measures at the web server or application level to prevent abuse of the login and registration endpoints.

Chat Assistant

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

EPSS Chart