CVE-2022-2168: Malicious code in consumerweb-analytics (npm)

consumerweb-analytics Updated 02 Oct 2025

Summary

20/06/2022
CRITICAL
No i
Critical
Not published

MAL-2022-2168: Malicious code in consumerweb-analytics (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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

consumerweb-analytics is an npm package used for web analytics in consumer-facing applications. It provides functionality to track user behavior, collect data, and generate analytics reports. The package is widely used in various web applications to gain insights into user interactions and improve user experience. However, a recent vulnerability has been discovered in consumerweb-analytics that allows the execution of malicious code on the host system.

Vulnerability Detail

The vulnerability (CVE-2022-2168) originates from the presence of malicious code in the consumerweb-analytics package. Any computer with this package installed or running should be considered fully compromised. The malicious code can grant complete control of the system to an external entity, potentially leading to unauthorized access, data breaches, and the theft of sensitive information. It is crucial to rotate all secrets and keys stored on the affected computer immediately from a different, secure system. While removing the package is recommended, it may not guarantee the removal of all malicious software installed as a result of its presence.

How To Fix

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

npm uninstall consumerweb-analytics

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 known workaround for this vulnerability. It is essential to follow the steps mentioned in the 'how_to_fix' section to mitigate the risk effectively.

Conclusion

The presence of malicious code in the consumerweb-analytics npm package (CVE-2022-2168) poses a significant security risk to systems running this package. It is crucial to take immediate action by rotating secrets and keys, removing the package, and conducting a thorough security audit. Implementing additional security measures and following best practices can help prevent similar vulnerabilities in the future. For further support and assistance in vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for consumerweb-analytics →

Share this vulnerability

FAQ

consumerweb-analytics is an npm package used for web analytics in consumer-facing applications. It helps track user behavior, collect data, and generate analytics reports.

The vulnerability allows the execution of malicious code on systems running the consumerweb-analytics package. This can lead to unauthorized access, data breaches, and the theft of sensitive information.

If you have consumerweb-analytics installed, you should consider your system fully compromised. Rotate all secrets and keys stored on that system immediately from a different computer, remove the package, and conduct a thorough security audit.

While removing the consumerweb-analytics package is recommended, there is no guarantee that it will remove all malicious software resulting from its installation. A thorough security audit is necessary to ensure complete removal.

To prevent similar vulnerabilities, implement regular vulnerability scanning and monitoring, keep all software and packages up to date, and follow secure coding practices.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall consumerweb-analytics

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