CVE-2021-32855: Vditor Cross-site Scripting vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.60016%
CWE
Published
2/21/2023
Updated
2/22/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
vditor | npm | < 3.8.7 | 3.8.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized HTML being processed during paste operations. The patch adds Lute.Sanitize()
call to the paste handler in fixBrowserBehavior.ts
, indicating this was the missing security check. The function processes()
clipboard data without proper sanitization in vulnerable versions, making it the entry point for XSS payloads.