Skip to main content

Malicious code in @solana-labs/ancor (npm)

0
High
Published: 06/15/2026 (06/15/2026, 17:17:17 UTC)
Source: GCVE Database
Product: @solana-labs/ancor

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.

Affected software

npmghsa
@solana-labs/ancor
Affected versions
=1.0.1=1.0.8=1.0.9=1.0.0=1.0.11=1.0.7=1.0.3=1.0.4=1.0.5=1.0.6=1.98.103=1.98.105=1.98.107=1.98.108=1.98.109=1.98.110=1.98.111=1.98.112

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 06:24:44 UTC

Technical Analysis

The '@solana-labs/ancor' npm package is a typosquatting attempt targeting developers of the Solana Anchor framework by mimicking its name and scope. The package's large minified bundles include calls to child_process and network POST requests, raising suspicion of potential malicious behavior such as unauthorized command execution or data exfiltration. However, these behaviors require further manual analysis to confirm intent, as similar calls can be legitimate in build or CLI tooling. There is no vendor advisory or patch information available, and no known active exploitation has been reported.

Potential Impact

If installed, this package could potentially execute unauthorized system commands or send data externally due to its use of child_process and network POST calls, posing a risk of code execution or data exfiltration. The typosquatting nature increases the risk of accidental installation by developers expecting the legitimate Anchor framework, potentially leading to supply chain compromise. No confirmed exploitation or impact details are available.

Mitigation Recommendations

No official patch or remediation guidance is available. Users should avoid installing packages with suspicious or typosquatting names, verify package scope ownership, and prefer the legitimate '@coral-xyz/anchor' package for Solana development. Manual review of package contents is recommended before installation. Monitoring package sources and using trusted registries can reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5786
Osv Schema Version
1.7.4
Aliases
["GHSA-h2x5-cj9x-hvcc"]
Ecosystems
["npm"]

Threat ID: 6a96f31bacd9273b49e49937

Added to database: 09/01/2026, 15:45:31 UTC

Last enriched: 09/08/2026, 06:24:44 UTC

Last updated: 10/01/2026, 22:45:49 UTC

Views: 23

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses