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

Medium 6.6 Published Updated

Stored Cross-Site Scripting in the vditor library allows attackers to inject malicious scripts, potentially leading to session hijacking or data theft.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-0341?

CVE-2022-0341 is a medium-severity cross-site scripting vulnerability in vanessa219/vditor, published on 14 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-79

Which versions are affected by CVE-2022-0341?

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

PackageAffectedFixed in
vditor npmAll versions3.8.11
vditor npmAll versions3.8.11

Products include B3log Vditor.

How do I fix CVE-2022-0341?

Upgrade vditor to 3.8.11 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-0341 being exploited?

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

Sources

Also known as GHSA-pq37-4c4g-v38c.

Is CVE-2022-0341 in your software?

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

Check your SBOMs for free