Skip to main content

HedgeDoc EUVDEUVD-2025-201504

| CVE-2025-66629 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2025-12-05 security-advisories@github.com
4.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft forged OAuth2 callback link
  2. Exploit
    Lure victim into clicking link
  3. Execution
    Complete OAuth flow lacking state check
  4. Impact
    Force account binding / session takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2021 - Broken Access Control
ASVS 5.0
V4 - Access Control Authorization enforcement, RBAC validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target HedgeDoc instance (prior to 1.10.4) to have an affected OAuth2 social-login provider enabled - specifically Google, GitHub, GitLab, Facebook, or Dropbox - since the flaw is the missing state-parameter CSRF protection on those endpoints. It additionally requires victim interaction (CVSS UI:R): the victim must follow an attacker-supplied link or visit an attacker-controlled page to trigger the forged OAuth2 callback. Limiting factors: instances that do not use these social login providers are not affected, the attack cannot run fully automatically against a server (a human victim must act), and the impact is bounded to integrity (I:L) with no direct data disclosure or service disruption.

Impact

This is a genuine but low-to-moderate priority issue, and the available signals are consistent with that reading. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N, base 4.3) describes a network-reachable, unauthenticated, low-complexity attack that nonetheless requires victim interaction and yields only a low integrity impact with no confidentiality or availability loss - a profile typical of login CSRF (CWE-352). EPSS is very low at 0.02% (5th percentile), the CVE is NOT on CISA KEV, and no public exploit was identified in the provided data, so there is no evidence of active exploitation. All signals agree: moderate CVSS, negligible exploitation probability, no KEV, no POC. The main caveat is that impact depends on how the OAuth2/social login is used in a given deployment; the CVSS I:L rating likely reflects session/account-binding manipulation rather than data theft. No conflicting signals were found in the input. This should be patched on a normal maintenance cadence rather than treated as an emergency.

Exploit ScenarioDerived

An attacker crafts a malicious page or link containing a forged OAuth2 callback for a HedgeDoc instance configured with a social login provider (e.g., Google, GitHub, GitLab). When an authenticated or in-the-middle-of-login victim is lured into clicking it, the absence of a verified state parameter lets the attacker complete the OAuth flow in the victim's browser, enabling login CSRF - for example binding the victim's session to an attacker-controlled identity or forcing an unintended account linkage. No public exploit was identified at time of analysis, and success depends on the required user interaction (UI:R).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 15, 2026

HedgeDoc versions prior to 1.10.4 lack CSRF protection in OAuth2 social login endpoints (Google, GitHub, GitLab, Facebook, Dropbox) because they omit the state parameter, allowing a remote, unauthenticated attacker to trick a victim into linking the attacker's social account or logging into an attacker-controlled account. This results in limited integrity impact (I:L) and requires victim interaction (UI:R); instances that do not use these social login providers are unaffected. No public exploit code has been identified, and the EPSS score is very low (0.02%), consistent with a low-to-moderate priority issue. The vulnerability is fixed in version 1.10.4.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:08 CVSS 3.7

RemediationAI

Upgrade to HedgeDoc 1.10.4, which is the vendor-released patch that fixes the missing state parameter and adds PKCE support. For detailed instructions, refer to the GitHub Security Advisory GHSA-6wm6-3vpq-6qvv. If an immediate upgrade is not feasible, disable the affected OAuth2 social login providers (Google, GitHub, GitLab, Facebook, Dropbox) in the HedgeDoc configuration as a temporary compensating control; however, this will prevent users from logging in via those providers and may impact usability. Additionally, monitor for suspicious account linking or login activities that could indicate exploitation attempts. The patch commit 35f36fccba941ed8029ee222f7d2a5df17b42e2b provides the code changes for reference.

Affected VersionsENISA

hedgedoc < 1.10.4

Affected Packages

euvd hedgedoc fix: 1.10.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a Cross-Site Request Forgery (CSRF) vulnerability (CWE-352) in HedgeDoc's OAuth2 social login integration. OAuth2 uses the state parameter to bind an authorization request to the user's session, preventing attackers from forging authorization responses. HedgeDoc versions before 1.10.4 omitted this parameter for providers such as Google, GitHub, GitLab, Facebook, and Dropbox, enabling an attacker to craft a malicious link that, when visited by a victim, could trigger an unauthorized OAuth2 callback. The fix, as shown in the commit diff, adds an oauth2 configuration block with pkce: true and likely implements state parameter validation, thereby mitigating CSRF. The CPE cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:* confirms that all versions prior to 1.10.4 are affected.

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

NVD PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

Network CSRF needs no attacker privileges (PR:N) but depends on the victim following a link (UI:R); impact is login/account-binding integrity only (I:L), with no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

4
Severity Changed
Oct 15, 2026 - 21:25 NVD
LOW MEDIUM
CVSS changed
Oct 15, 2026 - 21:25 NVD
3.7 (LOW) 4.3 (MEDIUM)
Patch released
Mar 15, 2026 - 17:08 nvd
Patch available
CVE Published
Dec 05, 2025 - 23:15 nvd
LOW 3.7

DescriptionNVD

HedgeDoc is an open source, real-time, collaborative, markdown notes application. Prior to 1.10.4, some of HedgeDoc's OAuth2 endpoints for social login providers such as Google, GitHub, GitLab, Facebook or Dropbox lack CSRF protection, since they don't send a state parameter and verify the response using this parameter. This vulnerability is fixed in 1.10.4.

Executive ViewAI

Why It Matters

CVE-2025-66629 is a low-severity vulnerability in HedgeDoc involving CSRF (CVSS 3.7). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard CSRF mitigations apply if patching is delayed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Low
niche self-hosted open-source collaborative notes app, modest deployment footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

CVE-2020-26287 HIGH POC
8.7 Dec 29

HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 8.7), this vulnerabilit

CVE-2023-38487 HIGH POC
8.2 Aug 04

HedgeDoc is software for creating real-time collaborative markdown notes. Rated high severity (CVSS 8.2), this vulnerabi

CVE-2024-45308 MEDIUM POC
6.5 Sep 02

HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.5), this

CVE-2021-21259 MEDIUM POC
6.1 Jan 22

HedgeDoc is open source software which lets you create real-time collaborative markdown notes. Rated medium severity (CV

CVE-2021-29475 CRITICAL
10.0 Apr 26

HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated critical severity (CVSS 10.0)

CVE-2021-29474 MEDIUM POC
5.8 Apr 26

HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated medium severity (CVSS 5.8), t

CVE-2026-58486 HIGH
8.3 Jul 13

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

CVE-2020-26286 HIGH
7.5 Dec 29

HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2026-58488 MEDIUM
6.9 Jul 13

Rate-limiting bypass in HedgeDoc prior to 1.11.0 permits unauthenticated remote attackers to circumvent brute-force prot

CVE-2026-58489 MEDIUM
6.8 Jul 13

HedgeDoc's GitHub Gist export feature exposes private and protected note content to attacker-controlled GitHub accounts

CVE-2025-32391 MEDIUM POC
6.4 Apr 10

HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.4), this

CVE-2021-39175 MEDIUM
6.1 Aug 30

HedgeDoc is a platform to write and share markdown. Rated medium severity (CVSS 6.1), this vulnerability is remotely exp

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy