Cross-site request forgery in HedgeDoc - CVE-2026-58489

 

Cross-site request forgery in HedgeDoc - CVE-2026-58489

Published: November 11, 2026


Vulnerability identifier: #VU165814
CSH Severity: Low
CVSS v4: 5.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58489
CWE-ID: CWE-352
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to disclose private, protected, or limited note content by causing it to be exported to an attacker-controlled GitHub Gist.

The vulnerability exists due to missing OAuth2 state validation in the GitHub Gist export callback when processing GitHub authorization responses. A remote user can trick a logged-in victim into clicking a forged callback URL containing the user's own valid GitHub authorization code and a state parameter that is present but does not match the expected value to export a note accessible through the victim's session to a GitHub Gist controlled by that user.

Exploitation requires GitHub Gist export to be enabled with a GitHub clientID and clientSecret configured.


Affected software

HedgeDoc

How to mitigate CVE-2026-58489

Install security update from vendor's website.

HedgeDoc - update to 1.11.0

External References

Related Security Bulletins