CVE-2021-4103 Cross-site Scripting (XSS) - Stored in vanessa219/vditor
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.
| Package | Affected | Fixed in |
|---|---|---|
vditor npm | All versions | 3.8.11 |
vditor npm | All versions | 3.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.
Other vulnerabilities in vanessa219/vditor
- CVE-2022-0341 Cross-site Scripting (XSS) - Stored in vanessa219/vditor
- CVE-2024-34449 Vditor allows Cross-site Scripting via an attribute of an `A` element
- CVE-2021-32855 vditor vulnerable to Cross-site Scripting
- CVE-2022-0350 Cross-site Scripting (XSS) - Stored in vanessa219/vditor
- CVE-2024-39150 Path traversal in n/a
Sources
Also known as GHSA-cxm3-v4mv-6mh8.