CVE-2021-42227: Cross Site Scripting in KindEditor

kindeditor Updated 02 Oct 2025

Summary

18/10/2021
No i
Moderate
6.1

CVE-2021-42227: Cross site scripting in kindeditor. Affects kindeditor versions < 4.1.12. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

KindEditor is an npm package that provides a rich text editor for web applications. It allows users to easily format and edit text content. However, versions 4.1.x of KindEditor are vulnerable to a Cross Site Scripting (XSS) attack. This vulnerability can be exploited when a website using KindEditor includes a specific .html file that is accessible via a Google search. An attacker can inject malicious scripts into the website, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The Cross Site Scripting (XSS) vulnerability in KindEditor 4.1.x allows an attacker to inject arbitrary scripts into a website that uses this editor. By exploiting this vulnerability, an attacker can execute malicious code in the context of the user's browser, potentially compromising sensitive user information or performing unauthorized actions on behalf of the user. This vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is crucial to update to a non-vulnerable version of KindEditor to mitigate the risk of exploitation.

Conclusion

The Cross Site Scripting (XSS) vulnerability in KindEditor 4.1.x poses a moderate security risk to web applications using this editor. It is important to update to a non-vulnerable version of KindEditor to mitigate the risk of exploitation. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for kindeditor →

Share this vulnerability

FAQ

KindEditor is an npm package that provides a rich text editor for web applications. It allows users to easily format and edit text content.

Cross Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to unauthorized access, data theft, or other malicious activities.

The vulnerability in KindEditor occurs when a website using this editor includes a specific .html file that is accessible via a Google search. This allows an attacker to inject arbitrary scripts into the website, potentially compromising user security.

The potential consequences of this vulnerability include unauthorized access to sensitive user information, data theft, and the execution of unauthorized actions on behalf of the user.

To protect your application from this vulnerability, it is recommended to update to a non-vulnerable version of KindEditor. Regularly checking for updates and applying them promptly is crucial for maintaining the security of your application.

Related vulnerabilities

Recent vulnerabilities recorded for kindeditor.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback