Malicious Code Vulnerability in libxmljs2qaz Package
Summary
MAL-2026-1780: Malicious code in libxmljs2qaz (npm). Affects libxmljs2qaz 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
libxmljs2qaz is an npm package that provides a JavaScript binding for the libxml2 library, allowing developers to manipulate XML documents easily. It is commonly used in applications that require XML parsing and manipulation. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in libxmljs2qaz stems from the inclusion of malicious code that can compromise the security of applications using this package. This malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was reported by ReversingLabs, highlighting the need for immediate attention and remediation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libxmljs2qaz
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
If immediate updating is not feasible, consider removing the libxmljs2qaz package from your project and replacing it with an alternative XML parsing library that does not have known vulnerabilities.
Conclusion
The libxmljs2qaz package has been identified as containing malicious code, posing significant risks to applications that utilize it. It is crucial to update to a patched version or consider alternative libraries to mitigate these risks. Regular monitoring using tools like Vulert can help maintain application security.
See every vulnerability recorded for libxmljs2qaz →
FAQ
libxmljs2qaz is an npm package that provides JavaScript bindings for the libxml2 library, enabling XML document manipulation.
The vulnerability involves malicious code that can compromise the security of applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application's vulnerability status without needing to sign up.
Consider removing the libxmljs2qaz package and replacing it with a secure alternative XML parsing library.
The vulnerability was reported by ReversingLabs, a security research firm specializing in malware analysis.