Malicious Code Detected in internal-pkg: A Critical Vulnerability
Summary
MAL-2025-6731: Malicious code in internal-pkg (npm). Affects internal-pkg versions >= 16.0.0. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The 'internal-pkg' is an npm package designed for internal use, facilitating various functionalities within applications. It is widely utilized for its ease of integration and modular capabilities. However, it has been identified to communicate with a domain associated with malicious activities, posing a significant security risk to applications relying on it.
Vulnerability Detail
The vulnerability arises from the package 'internal-pkg' starting from version 16.0.0, which has been found to connect to a domain linked to malicious actions. This can lead to unauthorized data access, potential data breaches, and exploitation of the application’s users. The malicious code can compromise the integrity of the application, making it susceptible to various attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall internal-pkg
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
If an immediate update is not feasible, consider removing the 'internal-pkg' from your project until a secure version is available. You can do this by executing: 'npm uninstall internal-pkg'. This will prevent any potential malicious activity associated with the package.
Conclusion
The 'internal-pkg' package has been found to contain malicious code that can jeopardize application security. It is crucial to update the package to a secure version or remove it from your project to prevent potential threats. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for internal-pkg →
FAQ
The vulnerability involves the package communicating with a domain known for malicious activities, which can compromise application security.
You can use Vulert to monitor and alert for vulnerabilities in your application. Visit Vulert Scanner to check if your application is affected without any signup.
As a temporary measure, you can uninstall the 'internal-pkg' package to mitigate the risk until a secure version is available.
Yes, updating to a patched version of 'internal-pkg' is the recommended solution to address this vulnerability.
The vulnerability was identified by Amazon Inspector, a security service that helps in finding vulnerabilities in applications.