CVE-2021-42227 Cross site scripting in kindeditor
Cross-site scripting vulnerability in KindEditor allows attackers to execute arbitrary scripts via crafted HTML files.
- 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-42227?
CVE-2021-42227 is a medium-severity cross-site scripting vulnerability in n/a, published on 14 Oct 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
Cross SIte Scripting (XSS) vulnerability exists in KindEditor 4.1.x via a Google search inurl:/examples/uploadbutton.html and then the .html file on the website that uses this editor (the file suffix is allowed).
Weakness: CWE-79
Which versions are affected by CVE-2021-42227?
2 open source packages ship an affected version, including kindeditor. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
kindeditor npm | All versions to 4.1.12 | None |
kindeditor npm | All versions to 4.1.12 | None |
Products include Kindsoft Kindeditor.
How do I fix CVE-2021-42227?
No fix has been published for CVE-2021-42227 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-42227 being exploited?
There is no known exploitation of CVE-2021-42227 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wv83-jrfh-rp33.