Critical Malicious Code Vulnerability in elf-stats-cocoa-cocoa-280 Package
Summary
MAL-2025-192205: Malicious code in elf-stats-cocoa-cocoa-280 (npm). Affects elf-stats-cocoa-cocoa-280 versions 1.0.0. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The elf-stats-cocoa-cocoa-280 package is an npm library that provides functionalities related to ELF (Executable and Linkable Format) statistics for Cocoa applications. It is commonly used in projects that require analysis or manipulation of ELF files. However, this package has been identified to contain malicious code, posing significant risks to applications that depend on it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the elf-stats-cocoa-cocoa-280 package, specifically in version 1.0.0. This code can potentially compromise the security of applications using this package, leading to unauthorized access, data breaches, or other malicious activities. The malicious code was detected by Amazon Inspector, indicating a serious threat to users of this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall elf-stats-cocoa-cocoa-280
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 remove the elf-stats-cocoa-cocoa-280 package from your project and replace it with a different library that offers similar features. Ensure to thoroughly test your application after making this change to confirm that it operates as expected.
Conclusion
The elf-stats-cocoa-cocoa-280 package contains a serious vulnerability due to malicious code, posing significant risks to applications that utilize it. It is crucial to remove the affected version and consider alternatives or patched versions to ensure the security of your software.
See every vulnerability recorded for elf-stats-cocoa-cocoa-280 →
FAQ
elf-stats-cocoa-cocoa-280 is an npm package used for analyzing ELF files in Cocoa applications.
The malicious code was detected by Amazon Inspector, a security assessment service that identifies vulnerabilities in software packages.
Using the compromised package can lead to unauthorized access, data breaches, and other security threats to your application.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software without requiring access to the code or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.