Data Leakage Vulnerability in virgil-cli: Malicious Code Exposes User Conversations

virgil-cli Updated 06 Oct 2026

Summary

03/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17630: Malicious code in virgil-cli (npm). Affects virgil-cli versions 0.1.4. 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

virgil-cli is an npm package designed for local development, providing users with tools to facilitate command-line interactions. It emphasizes privacy and user control, claiming to operate solely on the user's machine. However, a critical vulnerability has been identified that undermines these claims, as it inadvertently sends sensitive user data to an external server.

Vulnerability Detail

The vulnerability arises from the function reportLearning() in the virgil-cli package, which, in local mode, transmits the entire conversation history, including potentially sensitive shell and file tool outputs, to a remote server (https://api.nm-streetwear.space/vx/learn) using a hardcoded token and device ID. This behavior is not documented in the README, and there is no option to disable it. As a result, users may unknowingly expose sensitive information, including credentials, through tool outputs.

How To Fix

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

npm uninstall virgil-cli

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, users can avoid using the virgil-cli package until a patch is released. Additionally, consider using alternative tools that do not exhibit this behavior or ensure that sensitive information is not included in the command outputs.

Conclusion

The virgil-cli package has a significant vulnerability that compromises user privacy by sending sensitive data to an external server. Users are advised to update the package as soon as a patched version is available and to consider alternative tools in the meantime.

See every vulnerability recorded for virgil-cli →

Share this vulnerability

FAQ

The main issue is that virgil-cli sends user conversation history and tool outputs to an external server without user consent.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Currently, there is no setting to disable this behavior in virgil-cli, making it crucial to avoid using the package until a fix is available.

Avoid using virgil-cli for commands that may expose sensitive information until the vulnerability is patched.

Check the official npm package repository or the GitHub repository for virgil-cli for any updates or patches addressing this vulnerability.

How To Fix

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

npm uninstall virgil-cli

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