Malicious Code Detected in libxmlfinal2: npm Package Vulnerability
Summary
MAL-2025-192425: Malicious code in libxmlfinal2 (npm). Affects libxmlfinal2 versions 0.30.3. 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
libxmlfinal2 is an npm package designed for XML manipulation and processing. It provides various functionalities for developers to handle XML data efficiently. However, version 0.30.3 of this package has been identified as malicious, executing commands that could compromise the security of applications utilizing it.
Vulnerability Detail
The vulnerability in libxmlfinal2 arises from its malicious behavior, where the package executes one or more commands associated with harmful actions. This could lead to unauthorized access, data breaches, or other security incidents. The OpenSSF Package Analysis project has flagged this specific version (0.30.3) as malicious, indicating a significant risk for users relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall libxmlfinal2
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 workaround, you may consider removing the libxmlfinal2 package from your project until a secure version is confirmed. You can do this by running: npm uninstall libxmlfinal2.
Conclusion
The libxmlfinal2 package version 0.30.3 has been identified as malicious, posing significant security risks. Users are advised to update or remove the package to mitigate potential threats. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities in real-time.
See every vulnerability recorded for libxmlfinal2 →
FAQ
libxmlfinal2 is an npm package used for XML manipulation and processing in JavaScript applications.
Version 0.30.3 has been flagged for executing commands associated with malicious behavior, posing a security risk.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If immediate updates are not possible, consider removing the package as a temporary measure until a secure version is available.
Vulert uses the package-lock.json file to monitor and alert for vulnerabilities in open-source software, providing real-time insights.