Malicious Code Detected in elf-stats Package - npm Vulnerability

elf-stats Updated 11 Dec 2025

Summary

11/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192469: Malicious code in elf-stats (npm). Affects elf-stats versions 99.9.9. 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 elf-stats package is a Node.js library designed to provide statistics and information about ELF (Executable and Linkable Format) files. It is commonly used in various applications that require analysis of binary files. However, this package has been compromised, leading to the introduction of malicious code that can potentially harm users and their systems.

Vulnerability Detail

The vulnerability in the elf-stats package stems from the presence of malicious code that was identified by Amazon Inspector. This code can lead to unauthorized access, data breaches, or system compromise. The malicious code was found in version 99.9.9 of the package, and it poses significant risks to any application utilizing this version. Users are advised to take immediate action to mitigate these risks.

How To Fix

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

npm uninstall elf-stats

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, users can remove the elf-stats package from their project until a secure version is confirmed. This can be done using the command: npm uninstall elf-stats.

Conclusion

The elf-stats package has been compromised with malicious code, posing significant risks to users. It is crucial to update to a secure version or remove the package until a fix is available. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for elf-stats →

Share this vulnerability

FAQ

The elf-stats package is a Node.js library that provides statistics and information about ELF files, commonly used in applications that analyze binary files.

The malicious code was detected by Amazon Inspector, a security tool that scans for vulnerabilities in software packages.

The risks include unauthorized access to systems, data breaches, and potential compromise of user applications.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.

If immediate updates are not possible, consider removing the elf-stats package from your project as a temporary measure until a secure version is available.

How To Fix

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

npm uninstall elf-stats

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