{"id":"CVE-2022-21802","aliases":["CVE-2022-21802","GHSA-589f-c66p-hxr4"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS)","summary":"The package grapesjs before 0.19.5 are vulnerable to Cross-site Scripting (XSS) due to an improper sanitization of the class name in Selector Manager.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package grapesjs before 0.19.5 are vulnerable to Cross-site Scripting (XSS) due to an improper sanitization of the class name in Selector Manager.","source":"cvelist"},{"lang":"en","text":"The package grapesjs before 0.19.5 is vulnerable to Cross-site Scripting (XSS) due to an improper sanitization of the class name in Selector Manager.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete grapesjs versiones anteriores a 0.19.5, es vulnerable a un ataque de tipo Cross-site Scripting (XSS) debido a un saneamiento inapropiado del nombre de la clase en el Selector Manager","source":"nvd"}],"published":"2022-07-25T13:45:39.399Z","modified":"2026-06-17T04:27:00.803Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.19.5","status":"affected"}],"product":"grapesjs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"npm","package":"grapesjs","purl":"pkg:npm/grapesjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.19.5"}],"vendor":"grapesjs","product":"grapesjs","cpe":"cpe:2.3:a:grapesjs:grapesjs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/artf/grapesjs/issues/4411%23issuecomment-1167202709","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/artf/grapesjs/commit/13e85d152d486b968265c4b8017e8901e7d89ff3","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/artf/grapesjs/releases/tag/v0.19.5","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21802","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/artf/grapesjs","tags":["package"],"sources":["ghsa"]}],"credits":["zgeist"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21802","url":"https://www.cve.org/CVERecord?id=CVE-2022-21802","licence":"CVE Terms of Use","modified":"2024-09-16T23:25:57.741Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-589f-c66p-hxr4","url":"https://github.com/advisories/GHSA-589f-c66p-hxr4","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:10.634Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21802","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21802","licence":"Public domain","modified":"2026-06-17T04:27:00.803Z"}],"updatedAt":"2026-11-25T22:58:13.190Z","epss":{"score":0.00815,"percentile":0.58234,"date":"2026-12-01T12:00:22.000Z"}}