LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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 · low confidence lookup

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
Vulnerability profileCVE Program record
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

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

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

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2022-21802Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/agrapesjsunspecifiedListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.