Malicious Code Detected in libxmljsololo2: npm Package Vulnerability
Summary
MAL-2025-192426: Malicious code in libxmljsololo2 (npm). Affects libxmljsololo2 versions 0.30.2. 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
libxmljsololo2 is an npm package designed for XML manipulation in JavaScript applications. It provides functionalities for parsing and creating XML documents, making it a useful tool for developers working with XML data. However, the package version 0.30.2 has been identified as malicious, executing commands associated with harmful behavior, which poses significant risks to applications utilizing it.
Vulnerability Detail
The vulnerability in libxmljsololo2 arises from its malicious code that executes unauthorized commands. This behavior can lead to severe consequences, including data breaches, unauthorized access to system resources, and potential compromise of the host environment. The OpenSSF Package Analysis project has flagged this package as malicious due to its ability to perform actions that can harm users and their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libxmljsololo2
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, avoid using libxmljsololo2 in your projects. Instead, consider using alternative libraries for XML manipulation that are known to be secure. Always ensure to review the package's reputation and security status before integrating it into your application.
Conclusion
The detection of malicious code in libxmljsololo2 version 0.30.2 highlights the importance of vigilance when using open-source packages. Developers should take immediate action to remove the affected package and consider alternatives to safeguard their applications from potential threats.
See every vulnerability recorded for libxmljsololo2 →
FAQ
libxmljsololo2 is an npm package used for XML parsing and manipulation in JavaScript applications.
The malicious behavior was identified by the OpenSSF Package Analysis project, which monitors and analyzes packages for security vulnerabilities.
Using the malicious version can lead to unauthorized access, data breaches, and potential compromise of your application and its environment.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just package-lock.json. Check your application with Vulert Playground at Vulert Scanner.
Immediately uninstall the affected version and replace it with a secure alternative. Review your application for any potential impacts from the malicious code.