Malicious Code Injection in trevora-cir52: A Threat to npm Packages
Summary
MAL-2025-169248: Malicious code in trevora-cir52 (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 trevora-cir52 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and their projects.
Vulnerability Detail
The vulnerability in trevora-cir52 originates from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically modify package.json files, removing private flags and altering version numbers. This behavior can lead to the proliferation of malicious packages, which can compromise the integrity of the npm ecosystem and affect developers' reputations and projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir52
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 temporary workaround, you can remove the trevora-cir52 package from your project by executing the command: 'npm uninstall trevora-cir52'. This will prevent any malicious code from executing until a proper fix is applied.
Conclusion
The trevora-cir52 package poses a significant security risk due to its malicious code that alters project files and proliferates harmful packages. It is crucial for developers to take immediate action by uninstalling the package and monitoring their projects for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for trevora-cir52 →
FAQ
trevora-cir52 is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The malicious code modifies your package.json file, potentially compromising your project's integrity and reputation.
You should uninstall the package immediately and check for any unauthorized changes in your project files.
Yes, you can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground.
Regularly update your dependencies, use tools like Vulert for monitoring, and review package sources before installation.