CVE-2026-58489: HedgeDoc: CSRF in GitHub Gist export callback
HedgeDoc is an open source, real-time collaborative markdown notes application. Prior to 1.11.0, the GitHub Gist export flow created an OAuth2 state value but only checked that it was present rather than validating it against the value expected for the user's session. Because the state was not properly validated, an attacker could forge a callback URL containing their own valid GitHub OAuth code. When processing the callback, HedgeDoc used the victim's logged-in session to select which note to export, but the attacker's authorization code to determine which GitHub account received it. As a result, a logged-in victim who clicked a crafted link could export their own private, protected, or limited note directly into a Gist controlled by the attacker. This issue has been fixed in version 1.11.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
HedgeDocto a version that resolves this vulnerability.Fixed in 1.11.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58489?
CVE-2026-58489 has a risk score of 45, indicating a moderate severity.
What type of vulnerability is CVE-2026-58489?
CVE-2026-58489 is a Cross-Site Request Forgery (CSRF) vulnerability.
How do I fix CVE-2026-58489?
To fix CVE-2026-58489, upgrade to HedgeDoc version 1.11.0 or later.
What does CVE-2026-58489 affect?
CVE-2026-58489 affects the GitHub Gist export flow in HedgeDoc prior to version 1.11.0.
Why is CVE-2026-58489 a concern?
CVE-2026-58489 is a concern because it allows potential attackers to exploit the application's OAuth2 state validation.