MAL-2026-16310

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npx-test-ma980/MAL-2026-16310.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16310
Published
2026-09-21T03:21:25Z
Modified
2026-09-21T03:30:16Z
Summary
Malicious code in npx-test-ma980 (npm)
Details

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

Source: amazon-inspector (adfd1e5f7cc282648da56cdf50ac9c3cb27d6165fa4a3f8f3625b4a0c2694be6)

package.json declares a bin entry whose key contains shell metacharacters and a chained command: "tool & calc.exe": "./run.js". On Windows, npm's bin shim/symlink generation and later invocation via npm install -g or npx can interpret the & in the bin key as a command separator, causing calc.exe to execute as an unintended side effect of installing or linking the package. The shipped run.js is a trivial console.log("hello") and payload.json is empty, so the crafted bin key is the entire attack surface — a proof-of-concept exploit of npm bin-name handling that yields arbitrary command execution on the installer's host.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-020206",
            "import_time": "2026-09-21T03:24:21.277872623Z",
            "modified_time": "2026-09-21T03:21:25Z",
            "sha256": "adfd1e5f7cc282648da56cdf50ac9c3cb27d6165fa4a3f8f3625b4a0c2694be6",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / npx-test-ma980

Package

Name
npx-test-ma980
View open source insights on deps.dev
Purl
pkg:npm/npx-test-ma980

Affected ranges

Affected versions

1.*
1.0.1

Database specific

cwes
[
    {
        "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": "e5a512771a725b1f1eb57fa02df03b9930c94b37b8429b9229a583da3fcb6f10",
            "tlsh": "c1b01254d8724f533c8c0760053d41015227cc4760071c1a03436424c698d7b24bd158"
        }
    ],
    "package_integrity": [
        {
            "filename": "npx-test-ma980-1.0.1.tgz",
            "hashes": {
                "sha1": "d9862d7b06326cea50bb9d06c1c439464888c925",
                "sha512_sri": "sha512-3C2g6nGttIvl6L4nXmpJ4GU0wgFKacgBoo9sX73rjt7E99hAsKkuAcxiEQcYmN4U9fNoMg2F3QvYm3p2up0XOQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npx-test-ma980/MAL-2026-16310.json"