Malicious Code Detected in crossorm Package - Security Alert
Summary
MAL-2025-17709: Malicious code in crossorm (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 crossorm package is a Node.js ORM (Object-Relational Mapping) library that facilitates database interactions in JavaScript applications. It provides a simple and efficient way to manage database operations, making it popular among developers for its ease of use and flexibility. However, recent findings have revealed that the package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the crossorm package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access to sensitive data, lead to data manipulation, or even facilitate further attacks on the application or its users. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall crossorm
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 measure, users can avoid using the crossorm package until a secure version is released. Alternatively, consider using other ORM libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the crossorm package highlights the importance of vigilance in managing open-source dependencies. Users are urged to update their packages promptly and consider using tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for crossorm →
FAQ
The malicious code can potentially allow unauthorized access to sensitive data and may lead to data manipulation or further attacks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider using alternative ORM libraries or temporarily removing the crossorm package from your project.
Currently, all versions of crossorm are affected. Users should monitor the package repository for updates and security patches.
Vulert uses the package-lock.json file to monitor open-source vulnerabilities in your software, providing real-time alerts without requiring code access or installation.