Improper Authorization in HedgeDoc - #VU165817
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote attacker to read note contents without the intended authorization.
The vulnerability exists due to improper authorization in the checkViewPermission function in lib/web/note/util.js when handling HTTP requests for notes with unsupported permission values stored in the database. A remote attacker can request an affected note over HTTP to retrieve its contents because the permission check treats unrecognized values as publicly readable.
The issue affects instances using SQLite, where unsupported permission values can persist because the database does not enforce strict enum checks.