Malicious Code Detected in tiny-viewport-unit-calc Package - Host Reconnaissance and Data Exfiltration

tiny-viewport-unit-calc Updated 05 Oct 2026

Summary

04/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17528: Malicious code in tiny-viewport-unit-calc (npm). Affects tiny-viewport-unit-calc versions 1.0.0. 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 tiny-viewport-unit-calc package is a Node.js library designed to calculate viewport units in a simple manner. It is intended for developers who need to manage responsive designs effectively. However, this package has been compromised, containing malicious code that executes unauthorized commands, posing significant security risks to users.

Vulnerability Detail

The vulnerability originates from the inclusion of a malicious module named thunderboltRegistry.js within the tiny-viewport-unit-calc package. This module utilizes Node's child_process to execute system commands like 'whoami' and repeatedly pings external hostnames. The behavior indicates host reconnaissance and potential data exfiltration, as it sends sensitive information from the user's machine to an external server. This malicious activity is unrelated to the package's intended functionality, making it a severe security threat.

How To Fix

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

npm uninstall tiny-viewport-unit-calc

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 tiny-viewport-unit-calc package altogether and look for alternative libraries that provide similar functionality without the security risks. Additionally, you can monitor your application for vulnerabilities using tools like Vulert, which can analyze your package-lock.json file for potential threats.

Conclusion

The tiny-viewport-unit-calc package has been compromised with malicious code that poses significant security risks. Users are advised to remove the package and monitor their applications for vulnerabilities. Utilizing tools like Vulert can help in identifying and managing such threats effectively.

See every vulnerability recorded for tiny-viewport-unit-calc →

Share this vulnerability

FAQ

It is a Node.js library designed to help developers calculate viewport units for responsive web design.

The package executes system commands and sends sensitive information to external servers, indicating host reconnaissance and data exfiltration.

You can use the Vulert playground at Vulert Scanner to analyze your package-lock.json file for vulnerabilities without requiring any signup.

Currently, there is no patched version available. It is recommended to remove the package until a secure version is released.

You should uninstall the tiny-viewport-unit-calc package immediately and consider using alternative libraries for viewport calculations.

How To Fix

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

npm uninstall tiny-viewport-unit-calc

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