CVE-2021-21259
Last modified
CVE-2021-21259 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. HedgeDoc is open source software which lets you create real-time collaborative markdown notes. In HedgeDoc before version 1.7.2, an attacker can inject arbitrary JavaScript into a HedgeDoc note, which is executed when the note is viewed in slide mode. EPSS estimates a 1.35% chance of exploitation in the next 30 days.
Description
HedgeDoc is open source software which lets you create real-time collaborative markdown notes. In HedgeDoc before version 1.7.2, an attacker can inject arbitrary JavaScript into a HedgeDoc note, which is executed when the note is viewed in slide mode. Depending on the configuration of the instance, the attacker may not need authentication to create or edit notes. The problem is patched in HedgeDoc 1.7.2. As a workaround, disallow loading JavaScript from 3rd party sites using the `Content-Security-Policy` header. Note that this will break some embedded content.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hedgedoc | Hedgedoc | < 1.7.2 |
References
- https://github.com/hackmdio/codimd/issues/1648Exploit, Patch, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/commit/35b0d39a12aa35f27fba8c1f50b1886706e7efefPatch, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/releases/tag/1.7.2Release Notes, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-44w9-vm8p-3cxwThird Party Advisory
- https://github.com/hackmdio/codimd/issues/1648Exploit, Patch, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/commit/35b0d39a12aa35f27fba8c1f50b1886706e7efefPatch, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/releases/tag/1.7.2Release Notes, Third Party Advisory
- https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-44w9-vm8p-3cxwThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-21259?
How severe is CVE-2021-21259?
How do I fix CVE-2021-21259?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-21252The jQuery Validation Plugin provides drop-in validation for…7.5
- CVE-2021-21253OnlineVotingSystem is an open source project hosted on GitHu…5.3
- CVE-2021-21254CKEditor 5 is an open source rich text editor framework with…6.5
- CVE-2021-21255GLPI is an open-source asset and IT management software pack…5.7
- CVE-2021-21257Contiki-NG is an open-source, cross-platform operating syste…7.5
- CVE-2021-21258GLPI is an open-source asset and IT management software pack…5.4
- CVE-2021-2126Vulnerability in the Oracle VM VirtualBox product of Oracle …6
- CVE-2021-21260Online Invoicing System (OIS) is open source software which …5.4
- CVE-2021-21261Flatpak is a system for building, distributing, and running …8.8
- CVE-2021-21263Laravel is a web application framework. Versions of Laravel …5.3
- CVE-2021-21264October is a free, open-source, self-hosted CMS platform bas…5.2
- CVE-2021-21265October is a free, open-source, self-hosted CMS platform bas…7.5
Are you affected by CVE-2021-21259?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
