Security readout for executives and security teams
Plain-English summary
CVE-2022-21802 affects GrapesJS before 0.19.5. A flaw in how Selector Manager sanitized class names could allow cross-site scripting in applications that embed the editor. Business impact is most relevant where untrusted users can create or edit GrapesJS content.
Executive priority
Address during the next normal remediation cycle, sooner for public or multi-tenant authoring workflows. This is not evidenced as actively exploited, but XSS in content tooling can affect user trust, session safety, and data integrity.
Technical view
The vulnerability is XSS caused by improper sanitization of class names in GrapesJS Selector Manager. The CVSS 3.1 score is 5.4, with network attack vector, low complexity, no privileges, required user interaction, and limited confidentiality and integrity impact.
Likely exposure
Exposure is likely in web applications using the grapesjs package before 0.19.5, especially where users can import, author, or edit content through GrapesJS. The bundle also references a WebJars npm advisory, but exact downstream product exposure must be confirmed locally.
Exploitation context
The provided bundle does not show CISA KEV listing or active exploitation. The CVSS vector includes proof-of-concept exploit maturity, so treat it as a known, reproducible issue without assuming widespread exploitation.
Researcher notes
Evidence supports a GrapesJS Selector Manager class-name sanitization XSS fixed in v0.19.5. The bundle includes CVE, Snyk advisories, a GitHub issue comment, a fixing commit, and the release tag. No exploit procedure or active exploitation evidence is provided.
Mitigation direction
- Upgrade GrapesJS to version 0.19.5 or later.
- Check Java/WebJars dependency paths if GrapesJS is packaged that way.
- Review vendor release notes and advisories before deployment.
- Restrict GrapesJS editing features to trusted users until upgraded.
- Apply normal XSS defenses around rendered user-authored content.
Validation and detection
- Search dependency manifests and lockfiles for grapesjs versions below 0.19.5.
- Confirm deployed builds contain the upgraded GrapesJS version.
- Identify routes exposing GrapesJS editing to untrusted or semi-trusted users.
- Review content rendering paths for stored or reflected script execution risk.
- Verify SCA tools no longer flag CVE-2022-21802.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2022-21802 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.4 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P2.82.5Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.4MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
Source materials
- CVE List V5 sourceCVE List V5
- https://security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960CVE reference · x_refsource_MISC
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781CVE reference · x_refsource_MISC
- https://github.com/artf/grapesjs/issues/4411%23issuecomment-1167202709CVE reference · x_refsource_MISC
- https://github.com/artf/grapesjs/commit/13e85d152d486b968265c4b8017e8901e7d89ff3CVE reference · x_refsource_MISC
- https://github.com/artf/grapesjs/releases/tag/v0.19.5CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
