CVE-2021-22886 Cross-site scripting in Rocket.Chat
Remote attackers can inject JavaScript via nested markdown tags, leading to arbitrary file reads and remote code execution on the desktop application.
- 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-2021-22886?
CVE-2021-22886 is a medium-severity cross-site scripting vulnerability in Rocket.chat Rocket.chat, published on 26 Mar 2021. 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
Rocket.Chat before 3.11, 3.10.5, 3.9.7, 3.8.8 is vulnerable to persistent cross-site scripting (XSS) using nested markdown tags allowing a remote attacker to inject arbitrary JavaScript in a message. This flaw leads to arbitrary file read and RCE on Rocket.Chat desktop app.
Weakness: CWE-79
Which versions are affected by CVE-2021-22886?
It affects 1 product.
Products include Rocket.chat Rocket.chat.
How do I fix CVE-2021-22886?
No fix has been published for CVE-2021-22886 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-2021-22886 being exploited?
There is no known exploitation of CVE-2021-22886 in the wild and no public exploit code.
Other vulnerabilities in Rocket.chat Rocket.chat
Sources
Also known as GHSA-pvw2-rgm6-7685.