CVE-2022-1657: Malicious code in botbait (npm)

botbait Updated 02 Oct 2025

Summary

20/06/2022
CRITICAL
No i
Critical
Not published

MAL-2022-1657: Malicious code in botbait (npm). Affected versions are not published. No fix is published. 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 botbait package is an npm package that is used for [provide brief description of the package's functionality and key attributes]. It is vulnerable to a malicious code injection attack, which can compromise the security of any computer that has this package installed or running.

Vulnerability Detail

The vulnerability (CVE-2022-1657) originates from the presence of malicious code in the botbait package. This code can give full control of the affected computer to an outside entity, potentially leading to the compromise of secrets and keys stored on that computer. It is crucial to rotate all affected secrets and keys immediately from a different computer. Removing the package may not guarantee the removal of all malicious software resulting from its installation.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall botbait

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The botbait package is vulnerable to a malicious code injection attack, which can compromise the security of the affected computer. To mitigate this vulnerability, rotate all affected secrets and keys, remove the package, and perform a thorough security audit. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for botbait →

Share this vulnerability

FAQ

The impact of this vulnerability is the potential compromise of secrets and keys stored on the affected computer, as well as the possibility of full control being given to an outside entity.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and it will alert you in real-time for any open-source vulnerabilities.

No, there is no guarantee that removing the botbait package will remove all malicious software resulting from its installation. A thorough security audit is recommended to ensure complete removal.

If your computer is compromised, it is crucial to rotate all secrets and keys stored on that computer from a different computer. Additionally, perform a thorough security audit to identify and remove any other malicious software.

After fixing the vulnerability, it is recommended to reconsider the usage of the botbait package. It is important to evaluate the security risks associated with the package and consider alternative solutions.

Related vulnerabilities

Recent vulnerabilities recorded for botbait.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall botbait

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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