Malicious Code Vulnerability in @dransay/phone-fix-test Package

@dransay/phone-fix-test Updated 08 Oct 2026

Summary

08/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17698: Malicious code in @dransay/phone-fix-test (npm). Affects @dransay/phone-fix-test versions 99.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @dransay/phone-fix-test package is an npm library designed for phone-related functionalities. However, it has been found to contain malicious code that executes during installation, potentially compromising user privacy and security. This vulnerability arises from a preinstall script that sends sensitive network information to an external server.

Vulnerability Detail

The vulnerability originates from the package's preinstall script defined in package.json, which executes 'node beacon.js' during npm install. This script performs a DNS lookup and an HTTPS GET request to a hardcoded subdomain, logging the installing host's IP address and resolver metadata. This behavior constitutes unconsented data exfiltration to a non-first-party collector, posing significant privacy risks to users. The package is published under the @dransay scope on npm, with a version number designed to exploit dependency confusion vulnerabilities.

How To Fix

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

npm uninstall @dransay/phone-fix-test

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, avoid installing the @dransay/phone-fix-test package from public npm. If you need similar functionality, consider using alternative packages that do not exhibit malicious behavior.

Conclusion

The @dransay/phone-fix-test package contains a serious vulnerability that can lead to unauthorized data exfiltration. Users are strongly advised to remove this package and monitor their applications for any potential impacts. Utilizing tools like Vulert can help in identifying such vulnerabilities in real-time.

See every vulnerability recorded for @dransay/phone-fix-test →

Share this vulnerability

FAQ

The malicious code in the @dransay/phone-fix-test package logs sensitive network information during installation without user consent.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.

If you have installed the @dransay/phone-fix-test package, it is advisable to remove it immediately and check for any potential data leaks.

Yes, consider using other npm packages that provide similar functionalities without the malicious behavior.

The vulnerability can lead to unauthorized logging of your IP address and network metadata, compromising your privacy and security.

How To Fix

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

npm uninstall @dransay/phone-fix-test

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