Malicious Code Vulnerability in libxmljs2var-ctf Package

libxmljs2var-ctf Updated 19 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1783: Malicious code in libxmljs2var-ctf (npm). Affects libxmljs2var-ctf 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

libxmljs2var-ctf is an npm package designed for XML parsing and manipulation in JavaScript applications. It provides developers with a robust set of tools to handle XML data efficiently. However, this package has been identified as having a malicious code vulnerability that can compromise the security of applications using it.

Vulnerability Detail

The vulnerability in libxmljs2var-ctf originates from the inclusion of malicious code that can execute unauthorized actions within the host application. This can lead to data breaches, unauthorized access, and potential exploitation of the system. The malicious code was identified in version 0.30.3 of the package, and it poses significant risks to any application that relies on this version.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall libxmljs2var-ctf

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 libxmljs2var-ctf package from your project and replacing it with a different XML parsing library that does not have known vulnerabilities.

Conclusion

The libxmljs2var-ctf package has a serious vulnerability due to malicious code that can compromise application security. It is essential to update to a secure version or find alternative solutions to protect your application from potential threats.

See every vulnerability recorded for libxmljs2var-ctf →

Share this vulnerability

FAQ

libxmljs2var-ctf is an npm package used for XML parsing and manipulation in JavaScript applications.

The malicious code can execute unauthorized actions, leading to potential data breaches and exploitation of the host application.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

Yes, it is recommended to update the libxmljs2var-ctf package to the latest secure version to mitigate the vulnerability.

Consider removing the libxmljs2var-ctf package and using an alternative XML parsing library until you can update.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall libxmljs2var-ctf

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