Critical Malicious Code Vulnerability in npm-security-testing Package
Summary
MAL-2026-997: Malicious code in npm-security-testing (npm). Affected versions are not published. 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 npm-security-testing package is a tool designed for security testing within the npm ecosystem. It aims to help developers identify potential vulnerabilities in their dependencies. However, this package has been compromised, leading to severe security risks for any system utilizing it. The malicious code embedded within can grant unauthorized access to sensitive information, making it a critical concern for developers relying on this package.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the npm-security-testing package. This code can fully compromise any computer that has the package installed or running, allowing external entities to gain control over the system. The ramifications include unauthorized access to secrets and keys stored on the affected computer, which can lead to data breaches and further exploitation. The vulnerability is classified under CWE-506, indicating the presence of embedded malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall npm-security-testing
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
As a workaround, if you need to continue security testing, consider using alternative packages that do not have known vulnerabilities. Always ensure to review the security status of any package before installation.
Conclusion
The npm-security-testing package has been compromised with malicious code, posing a significant risk to any system using it. Immediate action is required to uninstall the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for npm-security-testing →
FAQ
npm-security-testing is a package designed to assist developers in identifying vulnerabilities within their npm dependencies.
You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor vulnerabilities without requiring access to the code or installation.
You should immediately uninstall the npm-security-testing package and rotate any secrets or keys stored on the affected computer.
No, there is currently no patched version available for the npm-security-testing package. The only solution is to remove it.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, which can alert you in real-time for open-source vulnerabilities.