CVE-2021-33041 Cross-site Scripting in vmd

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
vmd npmAll versions to 1.34.0None
vmd npmAll versions to 1.34.0None

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.

Is CVE-2021-33041 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free