Skip to main content
MalwarePublished

@next-fonts/font (npm) · Malicious Code

Affects @next-fonts/fontSource GCVE Database

0

Malicious package : remove @next-fonts/font and rotate any secrets on hosts that installed it.

Data as of 21 Aug 2026, 14:42 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14346

What to do

Remove @next-fonts/font from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@next-fonts/fontAffected
  • =1.0.1
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The @next-fonts/font npm package is a typosquatting malicious package impersonating Next.js's @next/font. It exports an Inter() function that decodes and executes a hidden base64 payload. This payload fetches blockchain transaction data from multiple public RPC endpoints, decrypts it, and executes arbitrary JavaScript code. This results in attacker-controlled code execution in any Node.js process that imports the package and calls Inter(), unrelated to any font functionality. The malicious behavior is obfuscated through base64 encoding, detached node process spawning, and blockchain-mediated command and control.

References

Community reviews

Loading reviews…