Malicious Code Vulnerability in @s4yhiitestpoc/r2-https-b Package

@s4yhiitestpoc/r2-https-b Updated 12 Oct 2026

Summary

12/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17808: Malicious code in @s4yhiitestpoc/r2-https-b (npm). Affects @s4yhiitestpoc/r2-https-b 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 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

The @s4yhiitestpoc/r2-https-b package is an npm package that is intended for use in various JavaScript applications. It is designed to facilitate HTTPS requests. However, it has been found to contain malicious code that compromises user data and privacy. This vulnerability poses a significant risk to users who install this package, as it collects sensitive information without consent.

Vulnerability Detail

The vulnerability originates from the postinstall.js script within the package, which automatically collects sensitive installer-side data such as hostname, username, home directory, network interface addresses, DNS servers, and the internal npm registry URL. This data is then sent to a hardcoded endpoint controlled by the package author. The dual-channel data collection mechanism, which includes a DNS lookup to a unique subdomain, allows the attacker to bypass outbound HTTPS restrictions, making it a serious security threat. The behavior of this package aligns with known patterns of dependency-confusion attacks, where malicious code is disguised as a legitimate package.

How To Fix

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

npm uninstall @s4yhiitestpoc/r2-https-b

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 @s4yhiitestpoc/r2-https-b package altogether and look for alternative packages that provide similar functionality without the associated risks.

Conclusion

The @s4yhiitestpoc/r2-https-b package contains malicious code that compromises user data. It is crucial to uninstall this package immediately and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.

See every vulnerability recorded for @s4yhiitestpoc/r2-https-b →

Share this vulnerability

FAQ

The main risk is that it collects sensitive user data and sends it to an attacker-controlled server without user consent.

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

You should uninstall the package immediately using 'npm uninstall @s4yhiitestpoc/r2-https-b' and look for alternative packages.

Currently, there is no mention of a patched version. It is advisable to remove the package until a secure version is released.

The postinstall.js script collects various installer-side data and sends it to a hardcoded endpoint, posing a significant security risk.

How To Fix

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

npm uninstall @s4yhiitestpoc/r2-https-b

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