CVE-2020-26287
Summary
| CVE | CVE-2020-26287 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-12-29 00:15:00 UTC |
| Updated | 2020-12-30 16:50:00 UTC |
| Description | HedgeDoc is a collaborative platform for writing and sharing markdown. In HedgeDoc before version 1.7.1 an attacker can inject arbitrary `script` tags in HedgeDoc notes using mermaid diagrams. Our content security policy prevents loading scripts from most locations, but `www.google-analytics.com` is allowed. Using Google Tag Manger it is possible to inject arbitrary JavaScript and execute it on page load. 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.1. As a workaround one can disallow `www.google-analytics.com` in the `Content-Security-Policy` header. Note that other ways to leverage the `script` tag injection might exist. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Stored XSS in mermaid · Issue #1630 · hackmdio/codimd · GitHub | MISC | github.com | Third Party Advisory |
| Release HedgeDoc 1.7.1 · hedgedoc/hedgedoc · GitHub | MISC | github.com | Third Party Advisory |
| ctf-writeups/solution.md at main · Alemmi/ctf-writeups · GitHub | MISC | github.com | Exploit, Third Party Advisory |
| Stored XSS in mermaid diagrams · Advisory · hedgedoc/hedgedoc · GitHub | CONFIRM | github.com | Third Party Advisory |
| Merge pull request from GHSA-g6w6-7xf9-m95p · hedgedoc/hedgedoc@58276eb · GitHub | MISC | github.com | Patch, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.