Critical Malicious Code Vulnerability in thehut Package

thehut Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6666: Malicious code in thehut (npm). Affects thehut 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

Thehut is an npm package designed for [insert functionality here, e.g., managing user sessions, handling API requests, etc.]. It is widely used in various applications due to its ease of integration and robust features. However, a recent vulnerability has been identified that exposes users to potential security risks, specifically malicious code execution.

Vulnerability Detail

The vulnerability, identified as MAL-2025-6666, originates from a malicious code injection in version 1.0.0 of the thehut package. This code can lead to unauthorized access to sensitive data, potential data breaches, and exploitation of the affected systems. The malicious code was discovered by ReversingLabs and is documented in their findings. Users of thehut are strongly advised to take immediate action to mitigate the risks associated with this vulnerability.

How To Fix

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

npm uninstall thehut

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

If an immediate update is not feasible, consider removing the thehut package from your project until a secure version is released. You can do this by executing: npm uninstall thehut.

Conclusion

The malicious code vulnerability in thehut package poses significant risks to applications utilizing it. Immediate action is required to update or remove the package to safeguard against potential exploitation. Users are encouraged to stay informed about updates and utilize tools like Vulert for ongoing monitoring.

See every vulnerability recorded for thehut →

Share this vulnerability

FAQ

The vulnerability involves malicious code that can compromise the security of applications using thehut, potentially leading to unauthorized access and data breaches.

You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities. Simply upload your package-lock.json file to the Vulert playground at Vulert Scanner to check for vulnerabilities.

As a temporary measure, consider uninstalling the thehut package until a secure version is available.

The vulnerability was discovered by ReversingLabs, a cybersecurity firm specializing in threat detection.

Currently, the only affected version is 1.0.0. Users should monitor for updates from the package maintainers for any patched versions.

How To Fix

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

npm uninstall thehut

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