VDB
Sign up
MEDIUM5.4

GHSA-cxm3-v4mv-6mh8

vditor Vulnerable to Cross-site Scripting in SVG events

Quick fix

GHSA-cxm3-v4mv-6mh8 — vditor: upgrade to the fixed version with the command below.

npm install vditor@3.8.11

Details

vditor does not filter user input in SVG events, leading to XSS

### PoC

```html </a> <svg><animate onbegin=alert(11) attributeName=x dur=1s> ```

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/vditor
Introduced in: 0Fixed in: 3.8.11
Fixnpm install vditor@3.8.11

References