HedgeDoc before 1.12.1 Prototype Pollution via Note History API
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 22, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 22, 2026
Description
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.
| Product | Versions |
|---|---|
| HedgeDoc HedgeDoc | before 1.12.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- GitHub Security Advisory (GHSA-3fwm-h59w-j268)Vendor Advisory
- https://github.com/hedgedoc/hedgedoc/commit/47060c247fb0902aebf1fe70cba130d9de623fc2Patch
- HedgeDoc 1.12.1 Release NotesRelease Notes
- https://github.com/hedgedoc/hedgedoc/blob/1.12.0/lib/history.js#L156-L161Technical Details
- VulnCheck Advisory: HedgeDoc before 1.12.1 Prototype Pollution via Note History APIThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.