MAL-2026-10472

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@torbeck/priority-queue/MAL-2026-10472.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10472
Aliases
  • GHSA-v2rg-75ch-7cfx
Published
2026-07-13T19:34:41Z
Modified
2026-08-14T15:00:56.380109882Z
Summary
Malicious code in @torbeck/priority-queue (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (b3109ebd719fa91812bd69e50b418b78f2a04c5478924f6ff53054cb798dc937)

The 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.

Source: ghsa-malware (2d7416e9e06b9c46d71f1aa23b1995c28e2c86a2b5c90c02b60380f5d4d15460)

Any 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-010294",
            "modified_time": "2026-07-13T19:34:41Z",
            "import_time": "2026-07-13T19:37:58.445570404Z",
            "source": "amazon-inspector",
            "sha256": "08cb928626dd6143e55ace3665c91ce2e51d54edadda1c91ca24685ec12e06fc",
            "versions": [
                "6.3.9"
            ]
        },
        {
            "id": "IN-MAL-2026-010296",
            "modified_time": "2026-07-13T19:34:56Z",
            "import_time": "2026-07-13T19:37:58.541997681Z",
            "source": "amazon-inspector",
            "sha256": "21cbe2ff5c8605c7c7cfe7c19d69f8096a0f271714f085102f1f0e9f5ebec3b6",
            "versions": [
                "6.3.7"
            ]
        },
        {
            "id": "IN-MAL-2026-010295",
            "modified_time": "2026-07-13T19:34:49Z",
            "import_time": "2026-07-13T19:37:58.470306256Z",
            "source": "amazon-inspector",
            "sha256": "b3109ebd719fa91812bd69e50b418b78f2a04c5478924f6ff53054cb798dc937",
            "versions": [
                "6.3.6"
            ]
        },
        {
            "id": "GHSA-v2rg-75ch-7cfx",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware",
            "import_time": "2026-08-13T22:11:44.646151513Z",
            "modified_time": "2026-08-13T17:01:40Z",
            "sha256": "2d7416e9e06b9c46d71f1aa23b1995c28e2c86a2b5c90c02b60380f5d4d15460"
        },
        {
            "id": "IN-MAL-2026-017784",
            "modified_time": "2026-08-14T14:35:47Z",
            "import_time": "2026-08-14T14:51:38.37654328Z",
            "source": "amazon-inspector",
            "sha256": "32062896bb70c8ed8dba8399e875a8651b67e43d5d14fd8389dd2b46718cb04e",
            "versions": [
                "6.3.10"
            ]
        },
        {
            "id": "IN-MAL-2026-017780",
            "modified_time": "2026-08-14T14:35:08Z",
            "import_time": "2026-08-14T14:51:37.937862461Z",
            "source": "amazon-inspector",
            "sha256": "c84112c0582b74e8ae50cc5219a22acbff70290ccd2417a508b06dacbf0e8f2d",
            "versions": [
                "6.3.8"
            ]
        },
        {
            "id": "IN-MAL-2026-017782",
            "modified_time": "2026-08-14T14:35:24Z",
            "import_time": "2026-08-14T14:51:38.207732106Z",
            "source": "amazon-inspector",
            "sha256": "f95bfdc11a97eae257413de11da0bcaebd50574c2ffff012554700d041b12a1d",
            "versions": [
                "6.3.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @torbeck/priority-queue

Package

Name
@torbeck/priority-queue
View open source insights on deps.dev
Purl
pkg:npm/%40torbeck/priority-queue

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.3.5
6.3.6
6.3.7
6.3.8
6.3.9
6.3.10

Database specific

cwes
[
    {
        "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",
        "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",
        "cweId": "CWE-506"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "priority-queue-6.3.9.tgz",
            "hashes": {
                "sha512_sri": "sha512-XVW5IeHVoL1rLoSJKsJB7MmOrWs/A9Yms0yya6t+I7CuJsAvodZUDFHuS414PthX5D2isOGYzLyDNqy/tsegpA==",
                "sha1": "b6035628ef10436cda26a8773d6062c0ae1cd36e"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "package.json",
            "tlsh": "0c2198a4ed6ecc530ac878e1b666d55171215a474804f80cb3e2423d5f9d2bf31b8b6d",
            "sha256": "0b44d1c9b7047e4d13d66a0844c5aaa2c98264a7062524425c0f511f336c1f97"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@torbeck/priority-queue/MAL-2026-10472.json"