{"id":"MAL-2026-10472","summary":"Malicious code in @torbeck/priority-queue (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b3109ebd719fa91812bd69e50b418b78f2a04c5478924f6ff53054cb798dc937)\nThe package republishes @datastructures-js/priority-queue verbatim — identical README pointing to datastructures-js.info, the original author 'Eyas Ranjous', and the upstream repository URL git+https://github.com/datastructures-js/priority-queue.git — under an unrelated @torbeck scope. Its package.json (L33-34) declares \"dependencies\": { \"@datastructures-js/heap\": \"npm:@torbeck/heap@4.3.8\" }, using npm alias syntax to silently substitute the legitimate @datastructures-js/heap with a sibling package @torbeck/heap@4.3.8 published by the same untrusted maintainer. src/priorityQueue.js does require('@datastructures-js/heap'), so on every import the substituted @torbeck/heap is loaded in place of the upstream package. The installer-facing harm is the namespace-abuse mechanism itself: any consumer who installs @torbeck/priority-queue automatically pulls @torbeck/heap under a name that reads as the legitimate datastructures-js dependency, regardless of what the @torbeck/heap tarball currently contains. The actual payload, if any, lives in @torbeck/heap and must be analyzed in its own record.\n\n## Source: ghsa-malware (2d7416e9e06b9c46d71f1aa23b1995c28e2c86a2b5c90c02b60380f5d4d15460)\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-v2rg-75ch-7cfx"],"modified":"2026-08-14T15:00:56.380109882Z","published":"2026-07-13T19:34:41Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-13T19:37:58.445570404Z","modified_time":"2026-07-13T19:34:41Z","sha256":"08cb928626dd6143e55ace3665c91ce2e51d54edadda1c91ca24685ec12e06fc","source":"amazon-inspector","versions":["6.3.9"],"id":"IN-MAL-2026-010294"},{"sha256":"21cbe2ff5c8605c7c7cfe7c19d69f8096a0f271714f085102f1f0e9f5ebec3b6","source":"amazon-inspector","versions":["6.3.7"],"id":"IN-MAL-2026-010296","import_time":"2026-07-13T19:37:58.541997681Z","modified_time":"2026-07-13T19:34:56Z"},{"source":"amazon-inspector","versions":["6.3.6"],"id":"IN-MAL-2026-010295","import_time":"2026-07-13T19:37:58.470306256Z","modified_time":"2026-07-13T19:34:49Z","sha256":"b3109ebd719fa91812bd69e50b418b78f2a04c5478924f6ff53054cb798dc937"},{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"2d7416e9e06b9c46d71f1aa23b1995c28e2c86a2b5c90c02b60380f5d4d15460","source":"ghsa-malware","id":"GHSA-v2rg-75ch-7cfx","import_time":"2026-08-13T22:11:44.646151513Z","modified_time":"2026-08-13T17:01:40Z"},{"versions":["6.3.10"],"id":"IN-MAL-2026-017784","import_time":"2026-08-14T14:51:38.37654328Z","modified_time":"2026-08-14T14:35:47Z","sha256":"32062896bb70c8ed8dba8399e875a8651b67e43d5d14fd8389dd2b46718cb04e","source":"amazon-inspector"},{"source":"amazon-inspector","versions":["6.3.8"],"id":"IN-MAL-2026-017780","import_time":"2026-08-14T14:51:37.937862461Z","modified_time":"2026-08-14T14:35:08Z","sha256":"c84112c0582b74e8ae50cc5219a22acbff70290ccd2417a508b06dacbf0e8f2d"},{"modified_time":"2026-08-14T14:35:24Z","sha256":"f95bfdc11a97eae257413de11da0bcaebd50574c2ffff012554700d041b12a1d","source":"amazon-inspector","versions":["6.3.5"],"id":"IN-MAL-2026-017782","import_time":"2026-08-14T14:51:38.207732106Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.6"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v2rg-75ch-7cfx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@torbeck/priority-queue/v/6.3.5"}],"affected":[{"package":{"name":"@torbeck/priority-queue","ecosystem":"npm","purl":"pkg:npm/%40torbeck/priority-queue"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["6.3.9","6.3.7","6.3.6","6.3.10","6.3.8","6.3.5"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"0c2198a4ed6ecc530ac878e1b666d55171215a474804f80cb3e2423d5f9d2bf31b8b6d","path":"package.json","sha256":"0b44d1c9b7047e4d13d66a0844c5aaa2c98264a7062524425c0f511f336c1f97"}],"package_integrity":[{"hashes":{"sha1":"b6035628ef10436cda26a8773d6062c0ae1cd36e","sha512_sri":"sha512-XVW5IeHVoL1rLoSJKsJB7MmOrWs/A9Yms0yya6t+I7CuJsAvodZUDFHuS414PthX5D2isOGYzLyDNqy/tsegpA=="},"filename":"priority-queue-6.3.9.tgz"}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"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"},{"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"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@torbeck/priority-queue/MAL-2026-10472.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}