{"id":"CVE-2021-22886","details":"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.","modified":"2026-04-10T04:30:14.994984Z","published":"2021-03-26T19:15:11.913Z","references":[{"type":"ADVISORY","url":"https://docs.rocket.chat/guides/security/security-updates"},{"type":"ADVISORY","url":"https://hackerone.com/reports/1014459"},{"type":"FIX","url":"https://github.com/RocketChat/Rocket.Chat/pull/20430"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rocketchat/rocket.chat","events":[{"introduced":"0"},{"fixed":"95ed038f24ca3a43dc4e2b899197b53477d8f40e"},{"introduced":"d05e26f4fc0d770bfdaed7e8b81a55dbc85dc1d3"},{"fixed":"f753e7a127bd77049a4057989f2d1f8ba501a3c6"},{"introduced":"3a13cead22bfc1100c5b89069498919473c84195"},{"fixed":"1e36f4183852248cece3b1ad092bc566a8cfbd52"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.8.8"},{"introduced":"3.9.0"},{"fixed":"3.9.7"},{"introduced":"3.10.0"},{"fixed":"3.10.5"}]}}],"versions":["0.10.0","0.10.1","0.10.2","0.11.0","0.13.0","0.14.0","0.15.0","0.16.0","0.17.0","0.18.0","0.19.0","0.23.0","0.24.0","0.25.0","0.26.0","0.27.0","0.28.0","0.29.0","0.30.0","0.36.0","0.37.0","0.37.1","0.38.0","0.39.0","0.40.0","0.40.1","0.41.0","0.42.0","0.43.0","0.44.0","0.45.0","0.46.0","0.48.0","0.49.0","0.49.1","0.49.2","0.49.3","0.49.4","0.50.0","0.54.0","0.54.1","0.56.0","0.56.0-rc.0","0.56.0-rc.1","0.56.0-rc.2","0.56.0-rc.3","0.56.0-rc.4","0.56.0-rc.5","0.56.0-rc.6","0.56.0-rc.7","0.57.0","0.57.1","0.57.2","0.58.0","0.58.1","0.58.2","0.59.0","0.59.1","0.59.2","0.59.3","0.59.4","0.59.5","0.59.6","0.60.0","0.60.1","0.60.2","0.60.3","0.60.4","0.61.0","0.61.1","0.61.2","0.62.0","0.62.1","0.62.2","0.63.0","0.63.1","0.63.2","0.63.3","0.64.0","0.64.1","0.64.2","0.65.0","0.65.1","0.65.2","0.66.0","0.66.1","0.66.2","0.66.3","0.67.0","0.68.0","0.68.1","0.68.2","0.68.3","0.68.4","0.68.5","0.69.0","0.69.1","0.69.2","0.70.0","0.70.1","0.70.2","0.70.3","0.70.4","0.71.0","0.71.1","0.72.0","0.72.1","0.72.2","0.72.3","0.73.0","0.73.1","0.73.2","0.74.0","0.74.1","0.74.2","0.74.3","0.8.0","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","2.0.0","2.1.0","2.1.1","2.1.2","2.2.0","2.3.0","2.3.1","2.3.2","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","3.0.0","3.0.1","3.0.10","3.0.11","3.0.12","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.1.0","3.1.1","3.1.2","3.10.0","3.10.1","3.10.2","3.10.3","3.10.4","3.2.0","3.2.1","3.2.2","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","3.5.0","3.5.1","3.5.2","3.5.3","3.5.4","3.6.0","3.6.1","3.6.2","3.6.3","3.7.0","3.7.1","3.7.2","3.8.0","3.8.1","3.8.2","3.8.3","3.8.4","3.8.5","3.8.6","3.8.7","3.9.0","3.9.1","3.9.2","3.9.3","3.9.4","3.9.5","3.9.6"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc0"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc2"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc4"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc5"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc6"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11.0-rc7"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22886.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}