Skip to main content
MalwarePublished Updated

@solana-labs/ancor (npm) · Malicious Code

Affects @solana-labs/ancorSource GCVE Database

0

Malicious package : remove @solana-labs/ancor and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 06:24 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5786

What to do

Remove @solana-labs/ancor 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@solana-labs/ancorAffected
  • 1.0.0 – 1.98.112
18 affected builds
Fixed in–

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

Description

The npm package '@solana-labs/ancor' is a typosquatting malicious package impersonating the legitimate Solana Anchor framework '@coral-xyz/anchor'. It uses a vendor-impersonating scope and a near-identical name to confuse developers. The package contains large minified bundles that include suspicious use of child_process, fetch POST calls, and references to curl and ping, which warrant human review to confirm malicious intent. There is no confirmed exploit in the wild or official patch information available.

References

Community reviews

Loading reviews…