{"id":"CVE-2022-21802","aliases":["EUVD-2022-6241","GHSA-589f-c66p-hxr4"],"status":"published","title":"Cross-site Scripting (XSS)","description":"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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00796,"percentile":0.56721,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-07-25T13:45:39Z","modified":"2026-10-28T02:30:43Z","fixes":[{"ecosystem":"npm","package":"grapesjs","fixed_in":["0.19.5"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"grapesjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.5"}]}]},{"source":"osv","ecosystem":"npm","package":"grapesjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"grapesjs","product":"grapesjs"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://github.com/artf/grapesjs/issues/4411%23issuecomment-1167202709","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/artf/grapesjs/commit/13e85d152d486b968265c4b8017e8901e7d89ff3","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/artf/grapesjs/releases/tag/v0.19.5","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21802","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-589f-c66p-hxr4"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21802.json","tags":["advisory"]},{"url":"https://github.com/artf/grapesjs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-21802","title":"Cross-site Scripting (XSS)","description":"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.","status":"published","published":"2022-07-25T13:45:39.399Z","modified":"2024-09-16T23:25:57.741Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2022-6241","description":"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.","status":"published","published":"2022-07-25T13:45:39Z","modified":"2024-09-16T23:25:57Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-03T00:54:50.852699Z"}],"ghsa":[{"id":"GHSA-589f-c66p-hxr4","title":"grapesjs before 0.19.5 vulnerable to Cross-site Scripting","description":"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.","status":"published","published":"2022-07-26T00:01:08Z","modified":"2023-01-27T05:07:31Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:21.8171Z"}],"nvd":[{"id":"CVE-2022-21802","description":"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.","status":"published","published":"2022-07-25T14:15:10.817Z","modified":"2026-06-17T04:27:00.803Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:24.037422Z"}],"osv":[{"id":"CVE-2022-21802","title":"Cross-site Scripting (XSS)","description":"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.","status":"published","published":"2022-07-25T13:45:39.399Z","modified":"2026-10-28T02:30:43.397970975Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"GHSA-589f-c66p-hxr4","title":"grapesjs before 0.19.5 vulnerable to Cross-site Scripting","description":"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.","status":"published","published":"2022-07-26T00:01:08Z","modified":"2023-11-08T04:08:10.634255Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
