Malicious Code Vulnerability in @vampirchik147/libxmljs2 - Security Risk Identified

@vampirchik147/libxmljs2 Updated 19 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1643: Malicious code in @vampirchik147/libxmljs2 (npm). Affects @vampirchik147/libxmljs2 versions 0.19.7. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package @vampirchik147/libxmljs2 is a JavaScript library that provides XML parsing capabilities for Node.js applications. It is designed to facilitate the manipulation and processing of XML data efficiently. However, this package has been flagged for containing malicious code, which poses a significant security risk to applications that depend on it.

Vulnerability Detail

The vulnerability stems from the inclusion of malicious code within the @vampirchik147/libxmljs2 package. This code can potentially compromise the security of applications using this library, leading to unauthorized access, data breaches, or other malicious activities. The specific version identified with this issue is 0.19.7, which has been linked to the malicious behavior. The origin of this vulnerability is attributed to the package being compromised, as noted by security researchers.

How To Fix

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

npm uninstall @vampirchik147/libxmljs2

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 can avoid using the affected version of the package by uninstalling it with the following command:

npm uninstall @vampirchik147/libxmljs2

Then, you can explore alternative libraries for XML parsing that do not have known vulnerabilities.

Conclusion

The @vampirchik147/libxmljs2 package has been identified as containing malicious code, posing a serious security risk to applications that use it. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for @vampirchik147/libxmljs2 →

Share this vulnerability

FAQ

The malicious code can lead to unauthorized access and potential data breaches in applications that utilize this library.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for any vulnerabilities.

Yes, you can temporarily uninstall the package and use alternative libraries for XML parsing until a secure version is available.

If you suspect that your application has been compromised, you should conduct a security audit, remove the malicious package, and review your application's security posture.

Detailed information can be found on the GitHub repository of the malicious package or through security advisories issued by organizations like ReversingLabs.

How To Fix

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

npm uninstall @vampirchik147/libxmljs2

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