Malicious Code Detected in libxmljs2qwerty: npm Package Vulnerability
Summary
MAL-2025-192389: Malicious code in libxmljs2qwerty (npm). Affects libxmljs2qwerty versions 0.30.30. 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
libxmljs2qwerty is a JavaScript library designed for XML parsing and manipulation, commonly used in Node.js applications. It provides developers with a simple API to work with XML data structures. However, the version 0.30.30 of this package has been identified as malicious, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in libxmljs2qwerty arises from its malicious behavior, which includes communication with a domain linked to harmful activities and the execution of commands that can compromise system integrity. This can lead to unauthorized access, data breaches, or further exploitation of the affected system.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libxmljs2qwerty
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, you can avoid using the libxmljs2qwerty package altogether until a secure version is confirmed. Review your project's dependencies and consider replacing it with a trusted XML parsing library.
Conclusion
The discovery of malicious code in the libxmljs2qwerty package highlights the importance of vigilance in managing open-source dependencies. By promptly addressing this vulnerability through updates and monitoring tools like Vulert, developers can safeguard their applications against potential threats.
See every vulnerability recorded for libxmljs2qwerty →
FAQ
libxmljs2qwerty is a JavaScript library for parsing and manipulating XML data in Node.js applications.
You can check if your application is affected by using Vulert, which monitors vulnerabilities in open-source packages. Visit Vulert Scanner to analyze your package-lock.json file.
Using the malicious version can lead to unauthorized access, data breaches, and potential exploitation of your system by attackers.
There is no patch for the malicious version 0.30.30. The recommended action is to uninstall this version and install a secure alternative.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on security advisories related to the packages you use.