Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. grapesjs
  4. ›
  5. CVE-2022-21802

CVE-2022-21802: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

July 25, 2022 (updated July 27, 2022)

The package grapesjs before 0.19.5 is vulnerable to Cross-site Scripting (XSS) due to an improper sanitization of the class name in Selector Manager.

References

  • github.com/artf/grapesjs/commit/13e85d152d486b968265c4b8017e8901e7d89ff3
  • github.com/artf/grapesjs/issues/4411%23issuecomment-1167202709
  • github.com/artf/grapesjs/releases/tag/v0.19.5
  • nvd.nist.gov/vuln/detail/CVE-2022-21802
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936781
  • security.snyk.io/vuln/SNYK-JS-GRAPESJS-2935960

Code Behaviors & Features

Detect and mitigate CVE-2022-21802 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.19.5

Fixed versions

  • 0.19.5

Solution

Upgrade to version 0.19.5 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/grapesjs/CVE-2022-21802.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.