Skip to main content

HedgeDoc EUVDEUVD-2026-117618

| CVE-2026-102927 MEDIUM
Improper Input Validation (CWE-20)
2026-11-05 GitHub_M
5.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as the note owner
  2. Exploit
    Send invalid permission string via WebSocket handler
  3. Execution
    Viewing/editing check falls through to permissive default
  4. Impact
    Note becomes readable/writable beyond intended audience

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Requires the authenticated note owner to intentionally send a permission value outside the supported set (freely, editable, limited, locked, protected, private) - e.g. an empty string - through the WebSocket 'permission' handler on HedgeDoc <= 1.11.0; the broader access then results from the viewing/editing checks defaulting to permissive behavior on the unknown value. Persistence of the invalid value occurs only on SQLite-backed deployments (the database column was not strictly enforced); MySQL and PostgreSQL reject the database write but leave the in-memory note state inconsistent for currently connected users until the note is reloaded or evicted from cache. Practical risk is limited because only the note owner can set the value and that owner could already choose a legitimate permissive setting such as 'freely'; there is no path for an unprivileged third party to trigger the condition.

Impact

Signals point to a genuinely low-to-moderate priority despite the medium CVSS 4.0 base score of 5.9 (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P). The vendor advisory (GHSA-93w7-49m2-cqwg) and the CVE description agree that exploitation requires the authenticated note owner to intentionally submit an invalid permission string, and that same owner could already choose a legitimate permissive value such as 'freely' - so the flaw does not let an unprivileged outsider escalate access; it lets an owner push their own note into an undefined, permissive state. The CVSS vector reflects this constrained path (PR:L = authenticated owner, AT:P = an attack requirement present, UI:P = passive involvement of the other users who then access the note, with only VC:L confidentiality but VI:H integrity). The vuln.today decision label is 'this_month', not act_now or emergency, consistent with the limited practical impact. No CISA KEV listing, no EPSS score, and no PoC/exploit reference are present in the input - the three references are the advisory, the fix commit, and the release tag, not exploit code - so there is no public exploit identified at time of analysis and no evidence of active exploitation. Net: a real authorization/input-validation bug worth patching on a normal cycle, where the headline severity is driven more by the integrity rating than by realistic exploitability.

Exploit ScenarioDerived

A note owner on a self-hosted HedgeDoc instance (<= 1.11.0) uses the WebSocket permission update handler to send an unsupported permission string (for example an empty string) instead of one of the six valid values. Because the viewing and editing checks only handled known values explicitly, the unknown value falls through to permissive behavior, making the note readable and/or writable more broadly than the labeled permission implies. No public exploit identified at time of analysis; the only published artifacts are the advisory and the fix commit, and the trigger requires the owner's own deliberate action (AV:N/AC:L but PR:L).

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

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

Alert me

AnalysisAIv1 – Nov 05, 2026

HedgeDoc 1.11.0 and earlier fails to validate the permission string a note owner submits through the realtime WebSocket 'permission' handler, so values outside the supported set (freely, editable, limited, locked, protected, private) can be stored and then fall through the viewing and editing checks into permissive defaults, letting a note become readable or writable more broadly than intended. The behaviour requires the authenticated note owner to deliberately send a malformed value such as an empty string; because that same owner could simply select the legitimate 'freely' setting, the practical security gain is minimal and no path exists for an unprivileged third party to trigger it. SQLite deployments can persist the bad value, while MySQL and PostgreSQL reject the write but may leave connected clients with inconsistent in-memory note state until reload or cache eviction. No public exploit code has been identified at time of analysis, and the issue is fixed in 1.11.1.

RemediationAI

Upgrade to HedgeDoc 1.11.1, which validates permission values against the allowed set before updating note state and adds denying fallbacks in the read and edit checks (fix commit 0dda149c7f528a7e98a34a8459b7afb23c90a05b, release notes at https://github.com/hedgedoc/hedgedoc/releases/tag/1.11.1, advisory at https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-93w7-49m2-cqwg). The vendor states that a workaround for the missing validation itself is not possible and that upgrading is required; the only compensating measure offered applies to SQLite-backed deployments unable to upgrade, where permission entries stored in the database should be validated strictly against the supported values (freely, editable, limited, locked, protected, private) and any out-of-set rows corrected - note that this only cleans persisted corruption and does not stop an owner from injecting an invalid value into live in-memory state, so it is not a substitute for the patch. Given the this_month decision label and the requirement that a note owner deliberately abuse their own note, remediation can be scheduled within the normal monthly patch cycle rather than treated as an emergency.

Affected VersionsENISA

hedgedoc < 1.11.1

Affected Packages

euvd hedgedoc fix: 1.11.1

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

HedgeDoc's realtime collaboration layer is implemented in lib/realtime.js over WebSockets (Socket.IO), where a note owner can push permission changes that are written directly into in-memory note state. The root cause is improper input validation (CWE-20) compounded by improper access control (CWE-284): the handler performed no membership test against the allowed set before assigning note.permission, and the downstream ifMayRead/ifMayEdit logic used if/else-if chains and a switch that only enumerated known values, so an unrecognised string hit the trailing else or default branch and evaluated permissively instead of denying. The fix introduces an allowedPermissionValues array, rejects any value not in it before updating state, restructures the read check into explicit positive branches with an invalid-permission fallback of false, and adds a default: mayEdit = false case. The persistence layer behaves differently by backend: the SQLite column for permission is not strictly enforced, so the invalid string can be durably stored, whereas MySQL and PostgreSQL reject the out-of-set update, which leaves a mismatch between the rejected database row and the already-mutated in-memory note object for currently connected users until the note is reloaded or evicted from cache. The trigger is entirely owner-initiated through the WebSocket permission flow; the advisory notes that normal permission checks on legitimate values are unaffected.

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

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

An authenticated note owner (PR:L) trivially sends an invalid value over WebSocket (AV:N/AC:L, no victim interaction to trigger), broadening read/write on a single note (C:L/I:L); no availability impact and no scope change.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 05, 2026 - 18:17 EUVD

DescriptionCVE.org

HedgeDoc is an open source, real-time collaborative markdown notes application. Prior to 1.11.1, the WebSocket permission handler allows a note owner to store strings outside the supported freely, editable, limited, locked, protected, and private permission values. The viewing and editing checks handle only known values and can otherwise fall through to permissive behavior, making a note readable or writable more broadly than intended. SQLite deployments can persist the invalid value because the database column does not strictly enforce the set, while MySQL and PostgreSQL reject the database update but can leave the in-memory note state inconsistent for connected users until reload or cache eviction. Exploitation requires the note owner to intentionally submit an invalid permission value, and the owner could already choose a legitimate permissive setting, which limits the practical security impact. This issue is fixed in version 1.11.1.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
self-hosted open-source collaborative notes app, niche 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.3%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-134794 HIGH
7.1 Nov 22

Authenticated users of HedgeDoc 1.12.0 and earlier can crash the server's Node.js process by sending a POST to the note-

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

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