Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as the note owner
-
ExploitSend invalid permission string via WebSocket handler
-
ExecutionViewing/editing check falls through to permissive default
-
ImpactNote 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 8.7), this vulnerabilit
HedgeDoc is software for creating real-time collaborative markdown notes. Rated high severity (CVSS 8.2), this vulnerabi
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.5), this
HedgeDoc is open source software which lets you create real-time collaborative markdown notes. Rated medium severity (CV
HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated critical severity (CVSS 10.0)
HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. Rated medium severity (CVSS 5.8), t
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
HedgeDoc is a collaborative platform for writing and sharing markdown. Rated high severity (CVSS 7.5), this vulnerabilit
Authenticated users of HedgeDoc 1.12.0 and earlier can crash the server's Node.js process by sending a POST to the note-
Rate-limiting bypass in HedgeDoc prior to 1.11.0 permits unauthenticated remote attackers to circumvent brute-force prot
HedgeDoc's GitHub Gist export feature exposes private and protected note content to attacker-controlled GitHub accounts
HedgeDoc is an open source, real-time, collaborative, markdown notes application. Rated medium severity (CVSS 6.4), this
EUVD-2026-117618
NVD
CVE.org
EPSS
GitHub
Exploit-DB