CVE-2022-21830: Cross-site Scripting in @rocket.chat/livechat

@rocket.chat/livechat Updated 02 Oct 2025

Summary

03/04/2022
Yes i
Moderate
6.1

CVE-2022-21830: Cross-site Scripting in @rocket.chat/livechat. Affects @rocket.chat/livechat versions < 1.9.0. Fixed in 1.9.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @rocket.chat/livechat package is an npm package used for implementing live chat functionality in RocketChat applications. It allows users to engage in real-time conversations with website visitors. This package is vulnerable to a blind self XSS vulnerability in versions lower than 1.9. This vulnerability enables an attacker to trick a victim into pasting malicious code in their chat instance.

Vulnerability Detail

The blind self XSS vulnerability in @rocket.chat/livechat versions lower than 1.9 allows an attacker to exploit the trust between users by tricking them into pasting malicious code into their chat instance. This can lead to the execution of arbitrary JavaScript code in the victim's browser, potentially compromising their sensitive information or performing unauthorized actions on their behalf. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.9.0

This is the first release that contains the fix.

npm install @rocket.chat/livechat@1.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version as soon as possible to ensure the security of the application.

Conclusion

In conclusion, the @rocket.chat/livechat package is vulnerable to a blind self XSS vulnerability in versions lower than 1.9. It is crucial to update to version 1.9.0 or higher to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @rocket.chat/livechat →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary JavaScript code in the victim's browser, potentially compromising their sensitive information or performing unauthorized actions on their behalf.

Versions lower than 1.9 of the @rocket.chat/livechat package are affected by this vulnerability.

No, there is no known workaround for this vulnerability. It is essential to update to the fixed version to mitigate the risk.

You can update the package by running the following command: npm install @rocket.chat/livechat@1.9.0

How To Fix

Minimum fixed version

1.9.0

This is the first release that contains the fix.

npm install @rocket.chat/livechat@1.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback