Fystack is now ISO/IEC 27001:2022 certified.
Back to Blog

NPM Dependency Supply Chain Nightmare: Billions of Downloads at Risk - Fystack Remains Unaffected

Thi Nguyen

Thi Nguyen

Author

September 9, 2025
3 min read

Founder

NPM Dependency Supply Chain Nightmare: Billions of Downloads at Risk - Fystack Remains Unaffected

On Sep 8, 2025 The NPM account of the a popular developer qix was compromised, he is managing some of famous packages with a total of 2 billions of downloads per month chalk, strip-ansi, and color-convert.

Effect on Fystack

Fystack is not affected by the recent NPM supply chain attack. Our frontend stack is the only part of our system that relies on NPM dependencies, and we use a minimal set of packages, which significantly reduces our exposure to these types of attacks.

We also follow strict security practices:

  • Thorough dependency audits: We reviewed all dependencies and confirmed none are compromised.
  • Locked dependencies: All packages are pinned and locked via package-lock.json, preventing unexpected updates.
  • Robust CI/CD pipeline: Our build process leverages security tools like Snyk and Socket Security, which automatically scan and block risky packages before merging.

Together, these measures provide multiple layers of defense and help minimize the risks of supply chain attacks.

Rule of Thumb for Developers

Publisher Side

When publishing to NPM, keep in mind:

  • Running npm login generates a plain-text authentication token stored in ~/.npmrc.
  • This token never expires by default and is not protected by any keychain or credential manager.
  • Unlike Docker, NPM does not integrate with secure credential stores, meaning your token is always stored in plain text on disk.

Always treat this token as highly sensitive. Consider logging out after publishing or enabling 2FA on your NPM account to reduce risk.

NPM doesn't have key chain integration like Docker

Enable 2fa at the package level

As a publisher, be careful of phising and social engineering attacks.

Phishing email looks like a legitimate one. npmjs.help is a fraud domain

Consumer side

1. Keep dependencies patched

  • Run npm audit fix regularly to apply the latest security patches.
  • Make it part of your CI/CD or local workflow to ensure vulnerabilities are caught early.
Fystack maintains zero security alerts for dependencies by acting quickly as a team.

2. Inspect the dependency tree

  • Use tools like npmgraph.js.orgto visualize dependency trees.
  • Prefer packages with a minimal number of dependencies (e.g., react-query keeps its tree small).
  • Be cautious with bloated packages (e.g., @metamask/sdk), as a large dependency tree increases your attack surface.
React-query have a minmial number of depencies
@metamask/sdk is bloated with a lot of dependencies which increase attack surface

3. Use precise version numbers

  • Always pin dependencies in package.json to exact versions (e.g., "react": "18.3.1") instead of version ranges (^1.2.3 or ~1.2.3).
  • Precise versions reduce the risk of introducing untested or malicious updates.

Example with a pinned version:

{
"name": "my-package",
"version": "1.0.0",
"dependencies": {
"react": "18.3.1"
}
}

While package-lock.json (or yarn.lock) captures exact versions for reproducibility, it’s not a substitute for explicit version pinning.

  • Lockfiles can be deleted, regenerated, or ignored in some workflows.
  • Explicit version pinning in package.json provides a stronger baseline, while the lockfile ensures consistent installs across environments.

This way, your builds are reproducible, harder to tamper with, and easier to audit for security compliance.

At Fystack, as a wallet infrastructure company, security is not just a best practice, it’s our top priority. From dependency management to CI/CD hardening, we follow strict security standards to safeguard our systems and ensure our clients can build with confidence.

Share this post

Related Posts

Continue reading with these related articles

Build vs. Buy Stablecoin Wallet Infrastructure: What Fintechs Should Consider
Stablecoins

Build vs. Buy Stablecoin Wallet Infrastructure: What Fintechs Should Consider

Every stablecoin ramp, payment gateway and OTC desk needs wallet infrastructure to receive, store and move customer funds. But building and operating that infrastructure comes with security, engineering and operational costs that are easy to underestimate. In July 2025, Indian crypto exchange CoinDCX lost approximately $44 million from a single internal operational account. The company absorbed the loss using its own reserves, as TechCrunch reported. For fintechs launching stablecoin payment r

November 23, 2026
5 min read
Stellar MPC Wallet Update: Social Login, Workspaces and Payment Approvals
Engineering

Stellar MPC Wallet Update: Social Login, Workspaces and Payment Approvals

The open-source Stellar MPC wallet now supports Google and GitHub sign-in, shared team workspaces with roles, and USD-based payment approvals that run before the MPC nodes sign.

November 21, 2026
5 min read
Nigeria's CBN Stablecoin Rules: Licensing and Compliance Steps for Operators
Compliance

Nigeria's CBN Stablecoin Rules: Licensing and Compliance Steps for Operators

⚠️This article is for informational purposes only and does not constitute legal advice. Operating a stablecoin ramp, payment gateway or wallet service in Nigeria without the required Central Bank of Nigeria (CBN) approval can attract a minimum fine of ₦100 million, plus ₦1 million for each day the breach continues. The penalty comes under the CBN's Regulations for the Operations of Non-Security Virtual Assets in Nigeria, effective 5 November 2026. Existing operators have 180 days to obtain th

November 19, 2026
4 min read