Critical Malicious Code Vulnerability in nf-graph-examples Package
Summary
MAL-2025-6187: Malicious code in nf-graph-examples (npm). Affects nf-graph-examples versions 0.0.1 – 1.0.1. 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 nf-graph-examples package is an npm library designed to provide examples for graph-related functionalities. It is often utilized by developers to demonstrate the capabilities of graph processing and visualization. However, this package has been identified to contain malicious code that compromises the security of any system it is installed on, making it a significant risk for users.
Vulnerability Detail
The vulnerability stems from embedded malicious code within the nf-graph-examples package. This code can lead to complete system compromise, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it appears to be harmful. Users who have this package installed should consider their systems fully compromised, as the malicious code can persist even after the package is removed.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nf-graph-examples
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
There are no effective workarounds for this vulnerability. The only safe course of action is to uninstall the nf-graph-examples package entirely. You can do this by running the following command: npm uninstall nf-graph-examples.
Conclusion
The nf-graph-examples package contains embedded malicious code that poses a severe security risk to any system it is installed on. Immediate action is required to remove the package and secure sensitive information. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for nf-graph-examples →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on your system.
You can use Vulert to monitor your application for vulnerabilities. Visit Vulert Scanner to check your application without needing to sign up.
Keeping the nf-graph-examples package installed poses a significant risk as it can lead to unauthorized access and data breaches.
After removing the package, it is essential to rotate all secrets and keys, as the compromise may have allowed external access to your system.
While removing the package is necessary, there is no guarantee that all malicious software has been removed, as the attacker may have installed additional harmful components.