CVE-2026-134794: HedgeDoc before 1.12.1 Prototype Pollution via Note History API
HedgeDoc before 1.12.1 contains a prototype pollution vulnerability in the POST /history/:noteId endpoint that allows authenticated users to modify Object.prototype by supplying proto as the noteId. Attackers can send a pinned value to /history/proto, which historyPost() in lib/history.js assigns onto the prototype, crashing the Node.js process and causing denial of service for all users.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated HedgeDoc user can exploit it by sending a request to the note history endpoint with __proto__ as the noteId. No user interaction is required.
What is the practical impact of successful exploitation?
An attacker can modify Object.prototype through the affected endpoint and crash the Node.js process. This causes denial of service for all users of the HedgeDoc instance.
Are installations running the fixed release affected?
No. The issue affects HedgeDoc versions before 1.12.1; upgrading to version 1.12.1 removes the affected behavior.
How can I determine whether an instance is vulnerable?
An instance is vulnerable if it runs a HedgeDoc version earlier than 1.12.1 and exposes the POST /history/:noteId endpoint to authenticated users. Requests targeting /history/__proto__ with a pinned value are the relevant exploitation pattern.