CVE-2022-0350 Cross-site Scripting (XSS) - Stored in vanessa219/vditor

Medium 6.1 Published Updated

Stored Cross-Site Scripting in the vditor library allows attackers to inject malicious scripts into web pages viewed by other users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-0350?

CVE-2022-0350 is a medium-severity cross-site scripting vulnerability in vanessa219/vditor, published on 31 Mar 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in GitHub repository vanessa219/vditor prior to 3.8.13.

Weakness: CWE-79

Which versions are affected by CVE-2022-0350?

2 open source packages ship an affected version, including vditor. It affects 1 product.

PackageAffectedFixed in
vditor npmAll versions3.8.13
vditor npmAll versions3.8.13

Products include B3log Vditor.

How do I fix CVE-2022-0350?

Upgrade vditor to 3.8.13 or later.

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-2022-0350 being exploited?

There is no known exploitation of CVE-2022-0350 in the wild and no public exploit code.

Sources

Also known as GHSA-689x-x68p-fph3.

Is CVE-2022-0350 in your software?

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

Check your SBOMs for free