# GHSA-9JM9-7H4X-JCMM: Malicious code in @merceas/anchor (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-07-27
- Modified: 2026-07-27

## Affected versions

- @merceas/anchor (npm): 0.32.1
- @merceas/anchor (npm): 0.32.3

## Description

## Source: amazon-inspector (86a51319de26245ad91c68a6a6d0713454112443e55f466711e79eb1a23a45b8)
Package is published as @merceas/anchor but its README, homepage (https://github.com/coral-xyz/anchor#readme), repository, and source are a verbatim copy of @coral-xyz/anchor — a typosquat/impersonation of the legitimate Solana Anchor SDK. The package.json overrides the standard `cross-fetch` dependency with an npm alias to a fork under the same scope: `"cross-fetch": "npm:@merceas/cross-fetch@3.1.9"`. Installing this package silently pulls @merceas/cross-fetch into the dependency tree, routing every HTTP call made through the SDK (including dist/cjs/utils/registry.js's `https://api.apr.dev/api/v0/program/<id>/latest?limit=<n>` call, and any fetches consumers make via the SDK's transport) through code controlled by the same actor that published this typosquat. The cross-fetch substitution is the attack mechanism: the malicious payload is in the transitive package the installer is forced to pull, not in this tarball.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8e0b34ef52b8348a4feea9da76dcc9d13d808163/osv/malicious/npm/@merceas/anchor/MAL-2026-6509.json))

## References

- https://github.com/ossf/malicious-packages/blob/8e0b34ef52b8348a4feea9da76dcc9d13d808163/osv/malicious/npm/@merceas/anchor/MAL-2026-6509.json
- https://www.npmjs.com/package/@merceas/anchor/v/0.32.1
- https://www.npmjs.com/package/@merceas/anchor/v/0.32.3
- https://github.com/advisories/GHSA-9jm9-7h4x-jcmm

Page: https://cve.now/GHSA-9JM9-7H4X-JCMM

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
