Malicious Code Injection in @tvg-mar/utils: DNS Exfiltration Vulnerability

@tvg-mar/utils Updated 23 Sep 2026

Summary

22/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-16416: Malicious code in @tvg-mar/utils (npm). Affects @tvg-mar/utils versions 9.9.10. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @tvg-mar/utils package is an npm library designed to provide various utility functions for JavaScript applications. It is commonly used in web development to streamline tasks and enhance functionality. However, this package has been found to contain malicious code that exploits its installation process to exfiltrate sensitive information from the user's environment.

Vulnerability Detail

The vulnerability originates from the package's installation script, which executes 'node index.js'. This script loads additional modules that reconstruct Node.js core APIs and exfiltrate sensitive information such as the username, hostname, and current working directory. This data is sent to a remote server via DNS queries, creating an out-of-band exfiltration channel that activates automatically during npm install. The malicious code is obfuscated and disguised as a benign connectivity probe, making it difficult to detect.

How To Fix

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

npm uninstall @tvg-mar/utils

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 @tvg-mar/utils package until a patched version is confirmed. Additionally, consider using alternative utility libraries that do not have known vulnerabilities.

Conclusion

The @tvg-mar/utils package contains a serious vulnerability that allows for the exfiltration of sensitive information during installation. It is crucial for developers to update to the latest patched version and consider alternative libraries to ensure the security of their applications. Utilizing tools like Vulert can further enhance vulnerability management.

See every vulnerability recorded for @tvg-mar/utils →

Share this vulnerability

FAQ

The vulnerability involves malicious code that exfiltrates sensitive information from the user's environment during the installation of the package.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If you have installed the affected package, you should update it to the latest patched version immediately to mitigate the risk.

Yes, there are several alternative utility libraries available on npm that do not have known vulnerabilities. Research and choose one that fits your needs.

Vulert monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file, providing a seamless way to stay informed.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall @tvg-mar/utils

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