CVE-2021-39175 XSS vector in slide mode speaker-view
An unauthenticated attacker can inject arbitrary JavaScript into HedgeDoc slide speaker-notes, enabling code execution in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-39175?
CVE-2021-39175 is a high-severity cross-site scripting vulnerability in hedgedoc, published on 30 Aug 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
HedgeDoc is a platform to write and share markdown. In versions prior to 1.9.0, an unauthenticated attacker can inject arbitrary JavaScript into the speaker-notes of the slide-mode feature by embedding an iframe hosting the malicious code into the slides or by embedding the HedgeDoc instance into another page. The problem is patched in version 1.9.0. There are no known workarounds aside from upgrading.
Which versions are affected by CVE-2021-39175?
It affects 1 product.
Products include Hedgedoc Hedgedoc.
How do I fix CVE-2021-39175?
No fix has been published for CVE-2021-39175 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-39175 being exploited?
There is no known exploitation of CVE-2021-39175 in the wild and no public exploit code.
Other vulnerabilities in hedgedoc
Sources
Also known as GHSA-j748-779h-9697.