CVE-2022-21802 Cross-site Scripting (XSS)
An attacker can execute arbitrary scripts via improper sanitization of class names in the Selector Manager of the GrapesJS library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-21802?
CVE-2022-21802 is a medium-severity cross-site scripting vulnerability in grapesjs, published on 25 Jul 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2022-21802?
2 open source packages ship an affected version, including grapesjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
grapesjs npm | All versions | None |
grapesjs npm | All versions | None |
Products include Grapesjs Grapesjs.
How do I fix CVE-2022-21802?
No fix has been published for CVE-2022-21802 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-21802 being exploited?
There is no known exploitation of CVE-2022-21802 in the wild and no public exploit code.
Sources
Also known as GHSA-589f-c66p-hxr4.