CVE-2021-4103 Cross-site Scripting (XSS) - Stored in vanessa219/vditor

Medium 6.8 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
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-4103?

CVE-2021-4103 is a medium-severity cross-site scripting vulnerability in vanessa219/vditor, published on 23 Jan 2022. Any signed-in user can exploit it over the 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 1.0.34.

Weakness: CWE-79

Which versions are affected by CVE-2021-4103?

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-2021-4103?

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-2021-4103 being exploited?

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

Sources

Also known as GHSA-cxm3-v4mv-6mh8.

Is CVE-2021-4103 in your software?

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

Check your SBOMs for free