GitHub Advisoryadvisory · npm
GHSA-cxm3-v4mv-6mh8 vditor Vulnerable to Cross-site Scripting in SVG events
MEDIUM
Official page ↗
- Aliases
- CVE-2021-4103
- Ecosystem
- npm
- Packages
- vditor
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2022-01-28
Affected packages
• npm vditor: < 3.8.11 → fixed in 3.8.11
Description
vditor does not filter user input in SVG events, leading to XSS
PoC
```html
```
Related
Alias · CVE (1)
- CVE-2021-4103 Cross-site Scripting (XSS) - Stored in GitHub repository vanessa219/vditor prior to 1.0.34. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-4103 advisory
- https://github.com/Vanessa219/vditor/issues/1133 web
- https://github.com/vanessa219/vditor/commit/8d4d0889dd72b2f839e93a49db3da3a370416c7d web
- https://github.com/vanessa219/vditor package
- https://huntr.dev/bounties/67b980af-7357-4879-9448-a926c6474225 web