# CVE-2026-134794: HedgeDoc before 1.12.1 Prototype Pollution via Note History API

Source: https://aplosec.si/cve/CVE-2026-134794/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-134794

High 7.1 · Reported · Fixed in 1.12.1 · CWE-1321 · Server

# HedgeDoc before 1.12.1 Prototype Pollution via Note History API

CVE-2026-134794 · published 2026-11-22

In plain words: this type of bug lets someone change parts of the application's data they should not be able to set (prototype pollution or mass assignment). A fixed release is listed.

## Summary

CVE-2026-134794 affects HedgeDoc (Server) < 1.12.1: Prototype Pollution via Note History API (CWE-1321). Fixed in 1.12.1. CVSS 4.0 base score 7.1 (High), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade HedgeDoc to 1.12.1 or later. Releases in the affected range (< 1.12.1) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-11-22 CVE published

## References

- [Referencehttps://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-3fwm-h59w-j268](https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-3fwm-h59w-j268)

- [Releasehttps://github.com/hedgedoc/hedgedoc/releases/tag/1.12.1](https://github.com/hedgedoc/hedgedoc/releases/tag/1.12.1)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/hedgedoc-before-1.12.1-prototype-pollution-via-note-history-api](https://www.vulncheck.com/advisories/hedgedoc-before-1.12.1-prototype-pollution-via-note-history-api)

- [Fix commithttps://github.com/hedgedoc/hedgedoc/commit/47060c247fb0902aebf1fe70cba130d9de623fc2](https://github.com/hedgedoc/hedgedoc/commit/47060c247fb0902aebf1fe70cba130d9de623fc2)

- [Vulnerable codehttps://github.com/hedgedoc/hedgedoc/blob/1.12.0/lib/history.js#L156-L161](https://github.com/hedgedoc/hedgedoc/blob/1.12.0/lib/history.js#L156-L161)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134794](https://www.cve.org/CVERecord?id=CVE-2026-134794)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134794](https://nvd.nist.gov/vuln/detail/CVE-2026-134794)

**Severity:** High 7.1 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-134794)

**Package:** HedgeDoc

**Ecosystem:** Server

**Affected:** < 1.12.1

**Fixed:** 1.12.1

**Weakness:** CWE-1321

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
