# CVE-2026-58489: HedgeDoc CSRF in GitHub Gist export callback

Source: https://junglewise.ai/threats/cve-2026-58489-hedgedoc-csrf-in-github-gist-export-callback  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-13. Updated: 2026-07-13  
License: CC BY 4.0 with a link back

CVE-2026-58489 · Severity: info · CVSS 6.8 · Published 2026-07-13

HedgeDoc is an open-source tool used for real-time collaborative note-taking. A security flaw in the GitHub Gist export feature could allow an attacker to steal a user's private notes. By tricking a logged-in user into clicking a malicious link, the attacker can force the application to export the victim's private content directly into a GitHub account controlled by the attacker.

Technologies: [HedgeDoc](https://junglewise.ai/threats/technologies/hedgedoc). Vendors: [HedgeDoc](https://junglewise.ai/threats/vendors/hedgedoc).

## Quick answers

**Is CVE-2026-58489 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-58489 being exploited in the wild.

**How severe is CVE-2026-58489?** Informational severity, with a CVSS score of 6.8, published 13 July 2026.

**Which products and versions are affected?** HedgeDoc < 1.11.0.

**Is there a fix for CVE-2026-58489?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-58489 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-58489?** Check whether you run HedgeDoc at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Cross-Site Request Forgery (CSRF) vulnerability exists in the GitHub Gist export callback of HedgeDoc versions prior to 1.11.0. The application failed to validate the OAuth2 'state' parameter, only checking for its presence rather than verifying it against the user's session. An attacker can exploit this by generating a valid GitHub OAuth authorization code for their own account and crafting a malicious callback URL. If a logged-in victim visits this URL, the application uses the victim's session to identify the note to be exported but uses the attacker's authorization code to authenticate the destination GitHub account. This results in the victim's private notes being exported to the attacker's Gist. The vulnerability requires GitHub OAuth to be enabled and requires user interaction (clicking a link). It is fixed in version 1.11.0.

## Affected products

- HedgeDoc HedgeDoc < 1.11.0

## Timeline

- 2026-06-18: advisory: GitHub Security Advisory published by maintainers
- 2026-07-13: disclosed: CVE published to NVD

## References

- [https://github.com/hedgedoc/hedgedoc/commit/fbd7307f162754212046ec343cbe691223a48c8d](https://github.com/hedgedoc/hedgedoc/commit/fbd7307f162754212046ec343cbe691223a48c8d)
- [https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-8v9p-5j95-826j](https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-8v9p-5j95-826j)

## Related threats

- [HedgeDoc permission handler improper validation](https://junglewise.ai/threats/cve-2026-102927-hedgedoc-is-an-open-source-real-time-collaborative-markdown)
- [HedgeDoc denial of service via YAML alias bomb in note frontmatter](https://junglewise.ai/threats/cve-2026-58486-hedgedoc-denial-of-service-via-yaml-alias-bomb-in-note)
- [HedgeDoc rate-limit bypass via CF-Connecting-IP spoofing](https://junglewise.ai/threats/cve-2026-58488-hedgedoc-rate-limit-bypass-via-cf-connecting-ip-spoofing)
- [HedgeDoc stored HTML injection via email local-part](https://junglewise.ai/threats/cve-2026-58487-hedgedoc-stored-html-injection-via-email-local-part)
- [HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to 1.10.4, some of HedgeDoc's…](https://junglewise.ai/threats/cve-2025-66629-hedgedoc-is-an-open-source-real-time-collaborative-markdown-notes)
