# CVE-2021-32855: vditor vulnerable to Cross-site Scripting

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-20T00:00:00.000Z
- Modified: 2026-06-17T03:53:46.050Z
- Also known as: GHSA-vfmp-9999-6wqj
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Vditor is a browser-side Markdown editor. Versions prior to 3.8.7 are vulnerable to copy-paste cross-site scripting (XSS). For this particular type of XSS, the victim needs to be fooled into copying a malicious payload into the text editor. Version 3.8.7 contains a patch for this issue.

(As written by CVE List.)

## Affected

- npm vditor: from 3.8.7 before 3.8.7
- vditor (npm): before 3.8.7
- b3log vditor: before 3.8.7

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2021-1006-vditor/> (exploit, third-party-advisory)
- <https://github.com/Vanessa219/vditor/issues/1085> (issue-tracking, third-party-advisory, web)
- <https://github.com/Vanessa219/vditor/commit/1b2382d7f8a4ee509d9245db4450d926a0b24146> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32855> (advisory)
- <https://github.com/Vanessa219/vditor> (package)
- <https://securitylab.github.com/advisories/GHSL-2021-1006-vditor> (advisory)

## Sources

- CVE List: [CVE-2021-32855](https://www.cve.org/CVERecord?id=CVE-2021-32855), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-vfmp-9999-6wqj](https://github.com/advisories/GHSA-vfmp-9999-6wqj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32855](https://nvd.nist.gov/vuln/detail/CVE-2021-32855), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32855 · Whole record: https://cve.day/CVE-2021-32855.json · Rebuilt by cve.day 2026-11-25T22:58:08.232Z
