CVE-2022-21802
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-21802 is a Cross-site Scripting (XSS) vulnerability discovered in the grapesjs package versions before 0.19.5. The vulnerability was disclosed on June 27, 2022, and published on July 18, 2022. The issue affects the Selector Manager component of grapesjs, a web builder framework, due to improper sanitization of class names (NVD, Snyk).

Technical details

The vulnerability is classified as a Cross-site Scripting (XSS) issue with a CVSS v3.1 base score of 6.1 (Medium) according to NVD, and 5.4 (Medium) according to Snyk. The vulnerability vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating that it is network-accessible, requires low attack complexity, needs no privileges, but does require user interaction (NVD, Snyk).

Impact

The vulnerability could allow attackers to execute malicious scripts in the context of the user's browser session. This could potentially lead to unauthorized access to sensitive information, session hijacking, or delivery of malware. The impact is characterized by low confidentiality and integrity losses, with no direct impact on system availability (Snyk).

Mitigation and workarounds

The vulnerability has been fixed in grapesjs version 0.19.5. Users are advised to upgrade to version 0.19.5 or higher to address this security issue. The fix involves protecting Selector Manager views from XSS attacks (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management