Malicious Code Detected in euclides Package - Critical Vulnerability Alert
Summary
MAL-2025-19901: Malicious code in euclides (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 euclides package is a JavaScript library available through the npm ecosystem, primarily used for mathematical computations and geometric operations. It is designed to provide developers with a set of tools to perform complex calculations efficiently. However, recent findings have revealed that this package contains malicious code, posing significant risks to applications that rely on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the euclides package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it imperative for users to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall euclides
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, consider removing the euclides package from your project until a secure version is released. You can do this by running the command: 'npm uninstall euclides'. This will help prevent any potential exploitation of the malicious code.
Conclusion
The euclides package has been identified to contain malicious code, posing significant security risks to applications. Users are urged to update or remove the package until a secure version is released. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for euclides →
FAQ
The euclides package is used for mathematical computations and geometric operations in JavaScript applications.
The malicious code was discovered by security researchers from Amazon Inspector, who identified the vulnerability during routine checks.
Using the euclides package with the malicious code can lead to unauthorized access, data breaches, and other security threats.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.