CVE-2022-21802
MEDIUM 6.1CVSS 3.1grapesjs before 0.19.5 vulnerable to Cross-site Scripting
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.
- Published
- 25 Jul 2022
- Last modified
- 2 Dec 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-589f-c66p-hxr4
- Sources
- NVDJSONOSV GHSA-589f-c66p-hxr4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | grapesjs | grapesjscpe:2.3:a:grapesjs:grapesjs:*:*:*:*:*:node.js:*:* |
< 0.19.5 | 0.19.5 |
| OSV | npm | grapesjs | < 0.19.5 | 0.19.5 |
References
- https://github.com/artf/grapesjs/commit/13e85d152d486b968265c4b8017e8901e7d89ff3 · Patch, Third Party Advisory, WEB
- https://github.com/artf/grapesjs/issues/4411%23issuecomment-1167202709 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/artf/grapesjs/releases/tag/v0.19.5 · Release Notes, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781 · Patch, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21802 · ADVISORY
- https://github.com/artf/grapesjs · PACKAGE
History
- 2 Dec 2026 16:24 UTC · OSV: affected list changed (1 entry)
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Jul 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 26 Jul 2022)