# CVE-2022-0350: Vditor stored cross-site scripting

Source: https://junglewise.ai/threats/cve-2022-0350-vditor-stored-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-04-01. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-0350 · Severity: low · CVSS 3.1 · Published 2022-04-01

Vditor is a popular web-based markdown editor. A stored cross-site scripting (XSS) vulnerability in versions prior to 3.8.13 allows authenticated users to inject malicious JavaScript that persists in the application and executes in the browsers of other users who view the affected content, potentially leading to account hijacking or theft of sensitive information.

Technologies: [vditor (npm)](https://junglewise.ai/threats/technologies/vditor). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-0350 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-0350 being exploited in the wild.

**How severe is CVE-2022-0350?** Low severity, with a CVSS score of 3.1, published 1 April 2022.

**Which products and versions are affected?** vditor (npm) SEMVER:introduced=0,fixed=3.8.13.

**Is there a fix for CVE-2022-0350?** Yes. vditor (npm): upgrade to 3.8.13 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-0350 attacked?** It is attacked over the network.

**Am I affected by CVE-2022-0350?** Check whether you run vditor (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- vditor (npm): upgrade to 3.8.13 or later

  ```sh
  npm install vditor@3.8.13
  ```


## Technical details

This is a stored cross-site scripting vulnerability (CWE-79) in vditor prior to version 3.8.13. The vulnerability exists in the editor's handling of user-supplied input, allowing authenticated users to inject malicious JavaScript code that is stored and later executed when other users view the content. The attack requires user interaction (someone viewing the malicious content) and authenticated access to inject the payload. An attacker can steal session tokens, perform actions on behalf of other users, or capture sensitive data. The fix was released in version 3.8.13 as evidenced by commit e912e36ea98251d700499b1ac7702708d3398476.

## Affected products

- Vanessa219 vditor prior to 3.8.13

## Identifiers

- CVE-2022-0350
- GHSA-689x-x68p-fph3

## Timeline

- 2022-03-31: disclosed: NVD published
- 2022-04-01: advisory: GitHub Security Advisory GHSA-689x-x68p-fph3 published
- 2022-04-08: patched: Fix released in version 3.8.13

## References

- [https://github.com/vanessa219/vditor/commit/e912e36ea98251d700499b1ac7702708d3398476](https://github.com/vanessa219/vditor/commit/e912e36ea98251d700499b1ac7702708d3398476)

## Related threats

- [Vditor Cross-site Scripting in anchor element attributes](https://junglewise.ai/threats/cve-2024-34449-vditor-cross-site-scripting-in-anchor-element-attributes)
- [Vditor cross-site scripting in copy-paste](https://junglewise.ai/threats/cve-2021-32855-vditor-cross-site-scripting-in-copy-paste)
- [vditor cross-site scripting vulnerability](https://junglewise.ai/threats/cve-2022-0341-vditor-cross-site-scripting-vulnerability)
- [vditor cross-site scripting in SVG events](https://junglewise.ai/threats/cve-2021-4103-vditor-cross-site-scripting-in-svg-events)
