Malicious Code Detected in eskema Package - Security Alert
Summary
MAL-2025-19821: Malicious code in eskema (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 eskema package is a JavaScript library available on npm, designed to facilitate schema validation and manipulation. It is widely used in web applications for ensuring data integrity and consistency. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability in the eskema package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eskema
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 eskema package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall eskema'. This will prevent any potential exploitation of the malicious code while you await a fix.
Conclusion
The discovery of malicious code in the eskema package poses a serious threat to applications that utilize it. Immediate action is required to update or remove the package to safeguard against potential security breaches. Stay informed about updates and utilize monitoring tools like Vulert to ensure your application remains secure.
See every vulnerability recorded for eskema →
FAQ
The eskema package is used for schema validation and manipulation in JavaScript applications, ensuring data integrity.
The malicious code was identified through security audits and reports from security researchers, including Amazon Inspector.
Using the eskema package with the malicious code can lead to unauthorized access, data breaches, and other security vulnerabilities.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. Visit https://vulert.com for more information.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring a signup.