# CVE-2020-26286: Arbitary file upload

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.44%, higher than 73% of CVEs (2026-12-02)
- Published: 2020-12-28T23:25:13.000Z
- Modified: 2026-06-17T03:08:00.100Z
- Weaknesses: CWE-434
- Assigned by: GitHub_M

## Description

HedgeDoc is a collaborative platform for writing and sharing markdown. In HedgeDoc before version 1.7.1 an unauthenticated attacker can upload arbitrary files to the upload storage backend including HTML, JS and PHP files. The problem is patched in HedgeDoc 1.7.1. You should however verify that your uploaded file storage only contains files that are allowed, as uploaded files might still be served. As workaround it's possible to block the `/uploadimage` endpoint on your instance using your reverse proxy. And/or restrict MIME-types and file names served from your upload file storage.

(As written by CVE List.)

## Affected

- hedgedoc hedgedoc: < 1.7.1; before 1.7.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-wcr3-xhv7-8gxc> (third-party-advisory)
- <https://github.com/hedgedoc/hedgedoc/releases/tag/1.7.1> (third-party-advisory)
- <https://github.com/hedgedoc/hedgedoc/commit/e9306991cdb5ff2752c1eeba3fedba42aec3c2d8> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-26286](https://www.cve.org/CVERecord?id=CVE-2020-26286), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-26286](https://nvd.nist.gov/vuln/detail/CVE-2020-26286), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26286 · Whole record: https://cve.day/CVE-2020-26286.json · Rebuilt by cve.day 2026-11-25T22:57:56.499Z
