Malicious Code Vulnerability in libxmljs13 Package
Summary
MAL-2026-1773: Malicious code in libxmljs13 (npm). Affects libxmljs13 versions 0.30.1. 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
libxmljs13 is a JavaScript library that provides an interface for parsing and manipulating XML documents in Node.js applications. It is widely used for its ability to handle XML data efficiently and offers features such as XPath support and DOM manipulation. However, the package has been found to contain malicious code, which poses a significant security risk to applications that rely on it.
Vulnerability Detail
The vulnerability in libxmljs13 stems from the presence of malicious code that can compromise the integrity of applications using this package. This code may allow attackers to execute arbitrary commands, leading to unauthorized access, data breaches, or system compromise. The malicious code was identified in version 0.30.1 of the package, and it is crucial for developers to be aware of this issue to protect their applications from potential exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libxmljs13
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 libxmljs13 package from your project and replacing it with an alternative XML parsing library that does not have known vulnerabilities.
Conclusion
The discovery of malicious code in the libxmljs13 package highlights the importance of maintaining secure dependencies in software development. Developers should promptly update their packages and consider using tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for libxmljs13 →
FAQ
The malicious code can execute arbitrary commands, potentially allowing attackers to gain unauthorized access to the system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without requiring any signup.
Consider removing the libxmljs13 package and using an alternative XML parsing library until you can safely update.
Version 0.30.1 of libxmljs13 contains the malicious code. It is advisable to update to the latest version or an alternative library.
Vulert uses your package-lock.json file to monitor and alert in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.