# CVE-2022-21802: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Published: 2022-07-25T13:45:39.399Z
- Modified: 2026-06-17T04:27:00.803Z
- Also known as: GHSA-589f-c66p-hxr4
- Weaknesses: CWE-79
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- grapesjs: from unspecified before 0.19.5
- grapesjs (npm): all versions
- grapesjs grapesjs: before 0.19.5

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960> (patch, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781> (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/commit/13e85d152d486b968265c4b8017e8901e7d89ff3> (patch, third-party-advisory, web)
- <https://github.com/artf/grapesjs/releases/tag/v0.19.5> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21802> (advisory)
- <https://github.com/artf/grapesjs> (package)

## Sources

- CVE List: [CVE-2022-21802](https://www.cve.org/CVERecord?id=CVE-2022-21802), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-589f-c66p-hxr4](https://github.com/advisories/GHSA-589f-c66p-hxr4), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-21802](https://nvd.nist.gov/vuln/detail/CVE-2022-21802), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21802 · Whole record: https://cve.day/CVE-2022-21802.json · Rebuilt by cve.day 2026-11-25T22:58:13.190Z
