CVE-2022-21830 Cross-site Scripting in @rocket.chat/livechat
An attacker can execute arbitrary scripts in a victim's browser by tricking them into pasting malicious code into the RocketChat LiveChat interface.
- 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
- Available
What is CVE-2022-21830?
CVE-2022-21830 is a medium-severity cross-site scripting vulnerability in Rocket.chat Livechat, published on 1 Apr 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
A blind self XSS vulnerability exists in RocketChat LiveChat <v1.9 that could allow an attacker to trick a victim pasting malicious code in their chat instance.
Weakness: CWE-79
Which versions are affected by CVE-2022-21830?
2 open source packages ship an affected version, including @rocket.chat/livechat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@rocket.chat/livechat npm | All versions | 1.9.0 |
@rocket.chat/livechat npm | All versions | 1.9.0 |
Products include Rocket.chat Livechat.
How do I fix CVE-2022-21830?
Upgrade @rocket.chat/livechat to 1.9.0 or later.
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-21830 being exploited?
There is no known exploitation of CVE-2022-21830 in the wild and no public exploit code.
Sources
Also known as GHSA-hf55-c445-2w97.