Malicious Code Detected in libxmlfinal2: npm Package Vulnerability

libxmlfinal2 Updated 10 Dec 2025

Summary

09/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192425: Malicious code in libxmlfinal2 (npm). Affects libxmlfinal2 versions 0.30.3. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback