CVE-2021-33041 Cross-site Scripting in vmd
Cross-site scripting in the VMD library allows attackers to execute arbitrary code via Electron remote code execution.
- 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-33041?
CVE-2021-33041 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 May 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
vmd through 1.34.0 allows 'div class="markdown-body"' XSS, as demonstrated by Electron remote code execution via require('child_process').execSync('calc.exe') on Windows and a similar attack on macOS.
Weakness: CWE-79
Which versions are affected by CVE-2021-33041?
2 open source packages ship an affected version, including vmd. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vmd npm | All versions to 1.34.0 | None |
vmd npm | All versions to 1.34.0 | None |
Products include Vmd Project Vmd.
How do I fix CVE-2021-33041?
No fix has been published for CVE-2021-33041 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-33041 being exploited?
There is no known exploitation of CVE-2021-33041 in the wild and no public exploit code.
Sources
Also known as GHSA-pfr3-87q3-65rc.