CVE-2021-47842 StudyMD 0.3.2 - Persistent Cross-Site Scripting
Attackers can inject malicious scripts into markdown files that execute upon opening, potentially enabling remote code execution in StudyMD.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-47842?
CVE-2021-47842 is a medium-severity cross-site scripting vulnerability in jotron StudyMD, published on 16 Jan 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
StudyMD 0.3.2 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts into markdown files. Attackers can upload crafted markdown files with embedded JavaScript payloads that execute when the file is opened, potentially enabling remote code execution.
Weakness: CWE-79
Which versions are affected by CVE-2021-47842?
How do I fix CVE-2021-47842?
No fix has been published for CVE-2021-47842 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-47842 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47842 exists.
Sources
Also known as GHSA-38vf-g5j6-x7wv.