Malicious Package Affecting strip-ansi-v6 package, versions *
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-STRIPANSIV6-3179432
- published 21 Dec 2022
- disclosed 15 Dec 2022
- credit Sonatype Research Team
How to fix?
Avoid using all malicious instances of the strip-ansi-v6
package.
Overview
strip-ansi-v6 is a malicious package. This package contains a malware that includes a reverse shell code and binds shell scripts.
As these packages are dependancy confusion packages, these packages are malicious if they have been downloaded and installed from the npm repository. Installation of these packages from other repositories or CDNs are likely safe to use.
These spoofed packages have no relation to the company or project they are attempting to spoof, and are not published by them or associated with them in any way.
Users should verify that the package they are using has been downloaded from the official source and not from the general package distribution repository. Snyk cannot automatically identify where a package has been downloaded from and will mark any use of the package as malicious to allow users to check whether they have been compromised.