@next-fonts/font@1.0.1
Malicious code in @next-fonts/font (npm)
Analysis
@next-fonts/font is a combosquat of Next.js's next/fonts. Its Inter() export, which should return font style metadata, instead spawns a detached node process running a base64-encoded loader. The loader fetches an encrypted payload from blockchain RPC endpoints (bsc-dataseed[.]binance[.]org, bsc-rpc[.]publicnode[.]com, api[.]trongrid[.]io, api[.]fullnode[.]mainnet[.]aptoslabs[.]com), XOR-decrypts it with a hardcoded key, and executes it via eval. The remote code is fetched from a BSC transaction and decrypted at runtime, so the executed payload is attacker-controlled and not present in the package itself.
- analyzed by
- Leitwacht
- first seen
- Aug 21, 2026, 04:11 AM
- analyzed
- Aug 21, 2026, 04:11 AM
Related advisories
- space-items@1.0.0
- mutex-thread@1.3.0
- async-lock-queue@3.0.1
- core-js-buffer@1.0.0
- shared-slot-gate@1.1.2
- try-lock-runner@3.2.1
- semaphore-job-pool@2.2.2
- postcss-initialize-plugin@3.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.