{"id":"CVE-2021-4103","aliases":["CVE-2021-4103","GHSA-cxm3-v4mv-6mh8"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS) - Stored in vanessa219/vditor","summary":"Cross-site Scripting (XSS) - Stored in GitHub repository vanessa219/vditor prior to 1.0.34.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cross-site Scripting (XSS) - Stored in GitHub repository vanessa219/vditor prior to 1.0.34.","source":"cvelist"},{"lang":"en","text":"vditor does not filter user input in SVG events, leading to XSS \n\n### PoC\n\n```html\n</a>\n<svg><animate onbegin=alert(11) attributeName=x dur=1s>\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de tipo Cross-site Scripting (XSS) - Almacenado en el repositorio de GitHub vanessa219/vditor versiones anteriores a 1.0.34","source":"nvd"}],"published":"2022-01-23T01:45:11.000Z","modified":"2026-06-17T04:19:02.410Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.0.34","status":"affected"}],"vendor":"vanessa219","product":"vanessa219/vditor","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.8.11"}],"ecosystem":"npm","package":"vditor","purl":"pkg:npm/vditor","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.34"}],"vendor":"b3log","product":"vditor","cpe":"cpe:2.3:a:b3log:vditor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/67b980af-7357-4879-9448-a926c6474225","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vanessa219/vditor/commit/8d4d0889dd72b2f839e93a49db3da3a370416c7d","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4103","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Vanessa219/vditor/issues/1133","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vanessa219/vditor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-4103","url":"https://www.cve.org/CVERecord?id=CVE-2021-4103","licence":"CVE Terms of Use","modified":"2024-08-03T17:16:04.162Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cxm3-v4mv-6mh8","url":"https://github.com/advisories/GHSA-cxm3-v4mv-6mh8","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:50.115Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-4103","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4103","licence":"Public domain","modified":"2026-06-17T04:19:02.410Z"}],"updatedAt":"2026-11-25T22:58:06.623Z","epss":{"score":0.00686,"percentile":0.53932,"date":"2026-12-01T12:00:22.000Z"}}