# CVE-2021-22886: 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…

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-03-26T18:15:54.000Z
- Modified: 2026-06-17T03:37:57.080Z
- Weaknesses: CWE-79
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- Rocket.Chat: Fixed in 3.11, 3.10.5, 3.9.7, 3.8.8
- rocket.chat rocket.chat: before 3.8.8; from 3.9.0 before 3.9.7; from 3.10.0 before 3.10.5; 3.11.0

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://docs.rocket.chat/guides/security/security-updates> (vendor-advisory)
- <https://hackerone.com/reports/1014459> (third-party-advisory)
- <https://github.com/RocketChat/Rocket.Chat/pull/20430> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-22886](https://www.cve.org/CVERecord?id=CVE-2021-22886), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22886](https://nvd.nist.gov/vuln/detail/CVE-2021-22886), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22886 · Whole record: https://cve.day/CVE-2021-22886.json · Rebuilt by cve.day 2026-11-25T22:58:00.467Z
