{"id":"MAL-2026-6448","summary":"Malicious code in bs58-86 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (057e2e470e0bc9dbfd2ff37955c0c7d051cca944025b9d62c882ffc98c4434e5)\nPackage `bs58-86@6.0.1` reproduces the name, README, repository URL (`cryptocoinjs/bs58`), and exported API of the widely-used `bs58` base58 encoding library (\u003e10M downloads/week). The only functional code in `src/cjs/index.cjs` is `require('base62-86x')(ALPHABET)` — instead of depending on the real `base-x` package that genuine `bs58` uses, this package pulls in `base62-86x` (declared as `^5.0.4` in package.json dependencies), an unrelated package controlled by a different publisher. All actual base-x implementation runs out of `base62-86x`, so any developer who installs `bs58-86` thinking it is `bs58` ends up executing whatever `base62-86x` ships, at require time. This is the typosquat-plus-dependency-redirect shape: the lure package is a thin shim whose only effect on the installer is to pull in and execute the redirected dependency.\n\n## Source: ghsa-malware (a08f802970ec2018540c73586abf53983f4038c066307734554eeb2686d71607)\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","aliases":["GHSA-9gvv-wfph-q6rj"],"modified":"2026-07-13T07:47:00.986770367Z","published":"2026-06-25T06:43:08Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"057e2e470e0bc9dbfd2ff37955c0c7d051cca944025b9d62c882ffc98c4434e5","import_time":"2026-06-25T07:47:51.758343969Z","id":"IN-MAL-2026-007491","modified_time":"2026-06-25T06:43:08Z","versions":["6.0.1"]},{"source":"ghsa-malware","sha256":"a08f802970ec2018540c73586abf53983f4038c066307734554eeb2686d71607","import_time":"2026-07-10T16:54:13.238139759Z","id":"GHSA-9gvv-wfph-q6rj","modified_time":"2026-07-10T16:16:17Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"a5154a12a69e766d413c5f9498cc217397973b0e38a9b9440fd3e291a64ebe03","import_time":"2026-07-13T07:40:11.053693167Z","id":"IN-MAL-2026-009822","modified_time":"2026-07-13T06:35:52Z","versions":["6.0.2"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bs58-86/v/6.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9gvv-wfph-q6rj"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/bs58-86/v/6.0.2"}],"affected":[{"package":{"name":"bs58-86","ecosystem":"npm","purl":"pkg:npm/bs58-86"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["6.0.1","6.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"bs58-86-6.0.1.tgz","hashes":{"sha1":"428bb3b26233b67914a586a4629e09a4d88e6fa6","sha512_sri":"sha512-kA6hNZeBbyc7DZyYAF7CL8Q0OcWw2kPVW82huQjt430gTeFv85gTlL1eWoJfi2WtHzhRm/9fYJi8K38atdRkkQ=="}}],"evidence_files":[{"tlsh":"6d31c955d8b84e630bc4a1a4987d1913e6310d8b8818fc5e73ee422c8f8c17f01fd2ad","path":"package.json","sha256":"d4632a2ef46b8b6e993bad5de3424faafd4346765dc636c85f2989b1dc6ee0ef"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bs58-86/MAL-2026-6448.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}