Critical Malicious Code Vulnerability in nf-graph-examples Package

nf-graph-examples Updated 02 Oct 2025

Summary

22/07/2025
CRITICAL
No i
Critical
Not published

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 ↓

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

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 →

Share this vulnerability

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.

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 →

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