Files
vuln-osv/data/npm/MAL-2026-6509.json
T

1 line
4.3 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-6509","published":"2026-06-26T05:51:43Z","modified":"2026-11-18T18:30:04.721361062Z","aliases":["GHSA-8x6x-x6v6-434r"],"summary":"Malicious code in @merceas/anchor (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (86a51319de26245ad91c68a6a6d0713454112443e55f466711e79eb1a23a45b8)\nPackage 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.\n\n## Source: ghsa-malware (726fa6e8c076cf0fcbf24476829378e844e2c7220b6828a900fcf95741bc5e03)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"@merceas/anchor","ecosystem":"npm","purl":"pkg:npm/%40merceas/anchor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.32.1","0.32.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"18bfa1ec76af587579ddf1358d9ef82c11d9be23c2b8ade610d4265306f87336","tlsh":"f951df21cd2cdc630ac016d8e83a0a62a13999534d94fc4d73a69b3d0f4d29f327eb2d"},{"path":"dist/cjs/utils/registry.js","sha256":"f7c5df166b0a8d334b050366fd5f7c741571ccab265a7d1f66f39a7adc0fde30","tlsh":"2a71ba243af762e14116309dc63f8a05e66cde23221cd4257e4c81addf75a24b67ef91"}],"package_integrity":[{"filename":"anchor-0.32.1.tgz","hashes":{"sha1":"33fa35cb493a13d84adef8f571467222256094bb","sha512_sri":"sha512-7jNYb9WmKOTBqhgD51Hq0NZvHXOzZx5d1LhlIJzJRQW+pnnNxUIUHTXvAKd0IGhNCagkDN50LEIE01PpryN5hQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@merceas/anchor/MAL-2026-6509.json"}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@merceas/anchor/v/0.32.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@merceas/anchor/v/0.32.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8x6x-x6v6-434r"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007599","import_time":"2026-06-26T06:28:53.15060173Z","modified_time":"2026-06-26T05:51:46Z","sha256":"86a51319de26245ad91c68a6a6d0713454112443e55f466711e79eb1a23a45b8","source":"amazon-inspector","versions":["0.32.1"]},{"id":"IN-MAL-2026-007597","import_time":"2026-06-26T06:28:53.06219528Z","modified_time":"2026-06-26T05:51:43Z","sha256":"a134a4286f35463d5ea5dec990bba508dfae1014c9ca7c6b8a674b5204150465","source":"amazon-inspector","versions":["0.32.3"]},{"id":"GHSA-8x6x-x6v6-434r","import_time":"2026-11-18T18:19:34.745465393Z","modified_time":"2026-11-18T18:16:13Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"726fa6e8c076cf0fcbf24476829378e844e2c7220b6828a900fcf95741bc5e03","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}