Malicious Code Vulnerability in event-hunter Package

event-hunter Updated 23 Sep 2026

Summary

23/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-16478: Malicious code in event-hunter (npm). Affects event-hunter 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The event-hunter package is an npm library designed for event handling and management in JavaScript applications. It is commonly used for simplifying event-driven programming. However, this package has been found to contain malicious code that compromises user security by sending sensitive information to an external server without consent.

Vulnerability Detail

The vulnerability originates from a postinstall hook that executes a script upon package installation. This script runs 'node index.js', which collects the internal hostname and a timestamp, encodes this data in base64, and sends it to a hardcoded external URL via an HTTPS GET request. This behavior is classified as a 'Dependency Confusion to RCE' proof-of-concept, posing significant risks as it exposes sensitive information to third parties without user consent.

How To Fix

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

npm uninstall event-hunter

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 event-hunter package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The event-hunter package contains a serious vulnerability that allows malicious code to execute upon installation, compromising user data. It is essential to update the package to a secure version and consider alternative solutions until a fix is available. Monitoring tools like Vulert can help keep your application secure.

See every vulnerability recorded for event-hunter →

Share this vulnerability

FAQ

The event-hunter package is an npm library used for managing events in JavaScript applications.

The vulnerability can expose sensitive information, such as your internal hostname, to an external server without your consent, potentially leading to further security issues.

Check the npm registry or the official repository for the event-hunter package to see if a patched version has been released.

As a temporary measure, avoid using the event-hunter package and consider alternative libraries that do not have this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.

How To Fix

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

npm uninstall event-hunter

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