MAL-2026-14049

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mexc/shared-utils/MAL-2026-14049.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14049
Published
2026-08-14T20:04:39Z
Modified
2026-08-14T20:31:47Z
Summary
Malicious code in @mexc/shared-utils (npm)
Details

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

Source: amazon-inspector (c6d793d1ff65b7f5a24e1aa0c176eaa5d83c7870e05cca5b64f22edb9ca7ded7)

Package published to the public npm registry under the @mexc scope without evidence of scope ownership. package.json declares a postinstall hook ("postinstall": "node postinstall.js") that runs on any installer whose resolver falls back to the public registry when resolving @mexc/shared-utils. The postinstall script collects host metadata — os.hostname(), os.userInfo().username, process.getuid(), process.cwd(), platform, node version, and multiple npm_* environment variables (npm_config_registry, npm_config_user_agent, npm_execpath, INIT_CWD) — and writes the data to os.tmpdir()/mexc-poc-execution-proof.json. The current shipped script performs local write only with no outbound network call, but the install-time code-execution primitive against any CI/build system that resolves the @mexc scope publicly is the classic dependency-confusion pattern; the author controls the code that runs and can change the payload in any future version.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-017927",
            "import_time": "2026-08-14T20:14:23.543443734Z",
            "modified_time": "2026-08-14T20:04:39Z",
            "sha256": "c6d793d1ff65b7f5a24e1aa0c176eaa5d83c7870e05cca5b64f22edb9ca7ded7",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @mexc/shared-utils

Package

Name
@mexc/shared-utils
View open source insights on deps.dev
Purl
pkg:npm/%40mexc/shared-utils

Affected ranges

Affected versions

1.*
1.0.0

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": "postinstall.js",
            "sha256": "78b73235dc0ec3cce2be6a37b4fef8c595ba7f686dff786e104af436c38d3742",
            "tlsh": "afa171194da8863623edcc50197a0c12a627cb47ed00b158f54d42c80f7aadede6aa7f"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mexc/shared-utils/MAL-2026-14049.json"