CVE-2022-0350: Cross-site Scripting in vditor

vditor Updated 02 Oct 2025

Summary

01/04/2022
Yes i
Moderate
5.4

CVE-2022-0350: Cross-site Scripting in vditor. Affects vditor versions < 3.8.13. Fixed in 3.8.13. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Vditor is an open-source markdown editor written in TypeScript. It provides a rich set of features for editing and rendering markdown content. The vulnerability identified as CVE-2022-0350 is a Cross-site Scripting (XSS) vulnerability that existed in the vditor GitHub repository prior to version 3.8.13.

Vulnerability Detail

The Cross-site Scripting (XSS) vulnerability allowed an attacker to inject malicious scripts into the vditor application. This type of vulnerability can lead to the execution of arbitrary code in the context of the victim's browser, potentially compromising user data or performing unauthorized actions on behalf of the user.

How To Fix

Latest published version: 4.0.1 as of 22 Oct 2026

npm install vditor@4.0.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.8.13

This is the first release that contains the fix.

npm install vditor@3.8.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The Cross-site Scripting (XSS) vulnerability in vditor has been addressed in version 3.8.13. Users are advised to update their installations to this version or later to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vditor →

Share this vulnerability

FAQ

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. These scripts can be used to steal sensitive information, perform unauthorized actions, or deface websites.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze the dependencies and alert you if any vulnerabilities are found.

No, the recommended solution is to update vditor to version 3.8.13 or later.

There are no known exploits for this vulnerability at the time of this advisory. However, it is important to update to the latest version of vditor to ensure the security of your application.

This vulnerability was discovered by the GitHub Security Lab.

Related vulnerabilities

Recent vulnerabilities recorded for vditor.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 4.0.1 as of 22 Oct 2026

npm install vditor@4.0.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.8.13

This is the first release that contains the fix.

npm install vditor@3.8.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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