MAL-2026-5985

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-path-utils/MAL-2026-5985.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5985
Aliases
  • GHSA-7qr8-pqwp-95p9
Published
2026-06-17T04:20:30Z
Modified
2026-06-22T08:46:20.532279315Z
Summary
Malicious code in node-path-utils (npm)
Details

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

Source: amazon-inspector (180db640dc8207694eb4629834f74b740d7efc9febf26067d190e10656fe04e9)

Package name node-path-utils and its README/description claim it is 'an exact copy of the NodeJS path module', impersonating the Node.js core path standard library to lure developers into installing it. On require() of the main entry (path.js), a top-level IIFE invokes loadTokenData(), which decodes a base64-encoded URL (aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9QMENORA==https://www.jsonkeeper.com/b/P0CND), fetch()es it, and passes the response JSON's content field directly to eval(). jsonkeeper.com is a free, mutable JSON-paste service: whoever controls the paste can swap the served code at any time, executing arbitrary attacker-controlled JavaScript in the consumer's Node process on every import. Additionally, path.js does require('mddriver') at module top with mddriver: "*" in dependencies — an unused, unpinned third-party package pulled into the installer's process at import, providing a second smuggling vector for attacker code via the transitive dependency. The combination of stdlib impersonation, base64-obfuscated remote fetch, eval of mutable paste-host content, and an unused wildcard-pinned sidecar dep is an unambiguous remote-code-execution dropper.

Source: ghsa-malware (a2a4eacda1ec7e6cac94034445386423f67ac00c917bcca6bff68ea06f4aed99)

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": [
        {
            "source": "amazon-inspector",
            "sha256": "180db640dc8207694eb4629834f74b740d7efc9febf26067d190e10656fe04e9",
            "import_time": "2026-06-17T05:45:41.991284706Z",
            "modified_time": "2026-06-17T04:20:30Z",
            "id": "IN-MAL-2026-006880",
            "versions": [
                "1.23.2"
            ]
        },
        {
            "source": "ghsa-malware",
            "sha256": "a2a4eacda1ec7e6cac94034445386423f67ac00c917bcca6bff68ea06f4aed99",
            "import_time": "2026-06-22T08:28:37.904598057Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-7qr8-pqwp-95p9",
            "modified_time": "2026-06-22T06:30:31Z"
        }
    ]
}
References
Credits

Affected packages

npm / node-path-utils

Package

Affected ranges

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

Affected versions

1.*
1.23.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "node-path-utils-1.23.2.tgz",
            "hashes": {
                "sha1": "a748e95bcb154a75df422d85ea4a4013d6d0d4d8",
                "sha512_sri": "sha512-iU+w0cRqYcmoH8ZnqMJkSHliff9zYoOMMtisJMFRsNTvYHqcUFINWMoCSazSWv607G4OS8glwITFyIkFuAJEFg=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "48828444594661599a3777b0df0a340ef77684f34215ab00f89cea502f72e78a2feed8",
            "sha256": "275628b95a69767953c674b4367b8547265c39c1d40d460e9d29e80685999a3c",
            "path": "path.js"
        },
        {
            "tlsh": "e7e0ab109f51ad3312ea136a9d2c40577360cecf0514bc0023ca0aac968e4bba6f228c",
            "sha256": "f41e67088d05fb2b7f35cbad49a766d326dced0605a7186eaf39aa8cdc057873",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-path-utils/MAL-2026-5985.json"