MAL-2026-2929

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/path-extend/MAL-2026-2929.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-2929
Aliases
  • GHSA-qvmc-2hcj-8h4f
Published
2026-04-14T09:46:58Z
Modified
2026-06-09T11:31:24.115735352Z
Summary
Malicious code in path-extend (npm)
Details

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

Source: amazon-inspector (429c0dbb9c8395a6c87ffcf5e6ebe03c6cf6568b4bf205afa933b7d6a49aa578)

On require(), path.js runs an IIFE that calls a loader which fetches a base64-hidden URL (https://www.jsonkeeper.com/b/XTTBX) from jsonkeeper.com — an anonymous, mutable JSON paste host — and passes the returned data.content to eval(). A second loader fetches https://www.jsonkeeper.com/b/P0CND for the same purpose. Variable names (randomStringRe, tokenStringRe) and base64-encoded URLs are obfuscation to evade scanning. The package name typosquats Node's built-in path module; package.json lists an empty author field and a generic 'Node.js path module' description, while path.js is otherwise a verbatim copy of Node core's path.js with the malicious fetch+eval block injected. Any installer that require()s this package runs attacker-controlled JavaScript in their Node process, with content the attacker can change at any time by editing the paste.

Source: ghsa-malware (71f280ff0423062f06e45d9a15b65e9dad0b791098bfcc9c5584f6084d28d300)

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.

Source: ossf-package-analysis (6daf896311438eb762b70471958c7f04895813b4c057c34d6c2ab7c3728efd89)

The OpenSSF Package Analysis project identified 'path-extend' @ 1.0.11 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "ossf-package-analysis",
            "sha256": "52c2661ca17328d4f67902e131d03e548f17b06da170068f83a8ec9c591903ad",
            "import_time": "2026-04-20T04:35:28.771147038Z",
            "versions": [
                "1.0.6"
            ],
            "modified_time": "2026-04-14T09:46:58Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-04-23T20:43:56Z",
            "sha256": "37804be2613b17c7c5401a43691f95014904146dbfc9412683e0b171df31605b",
            "versions": [
                "1.0.6"
            ],
            "import_time": "2026-04-23T20:49:10.17585156Z"
        },
        {
            "source": "ossf-package-analysis",
            "sha256": "6daf896311438eb762b70471958c7f04895813b4c057c34d6c2ab7c3728efd89",
            "import_time": "2026-05-26T00:54:39.838565337Z",
            "versions": [
                "1.0.11"
            ],
            "modified_time": "2026-05-25T17:06:05Z"
        },
        {
            "modified_time": "2026-05-25T15:23:59Z",
            "source": "amazon-inspector",
            "sha256": "c4c091119d018a33eb22727f85b6821f9452b71ff84c4afa4df86c67e709f774",
            "id": "IN-MAL-2026-004698",
            "versions": [
                "1.0.10"
            ],
            "import_time": "2026-05-26T05:53:06.591002223Z"
        },
        {
            "import_time": "2026-05-26T05:53:06.475540452Z",
            "source": "amazon-inspector",
            "sha256": "cc33e693ad0bd0a453fe55b7fcb04abcb60cb4ce20058d0c17fbd711d6d8763d",
            "id": "IN-MAL-2026-004697",
            "versions": [
                "1.0.10"
            ],
            "modified_time": "2026-05-25T15:23:55Z"
        },
        {
            "modified_time": "2026-05-25T15:51:56Z",
            "source": "amazon-inspector",
            "sha256": "429c0dbb9c8395a6c87ffcf5e6ebe03c6cf6568b4bf205afa933b7d6a49aa578",
            "id": "IN-MAL-2026-004713",
            "versions": [
                "1.0.11"
            ],
            "import_time": "2026-05-26T05:53:08.443731468Z"
        },
        {
            "import_time": "2026-05-26T05:53:08.560494859Z",
            "source": "amazon-inspector",
            "sha256": "4fa4226179b5432c372b39bf7467e3ef226e1f31131c82a2ab339142c658c906",
            "id": "IN-MAL-2026-004714",
            "versions": [
                "1.0.11"
            ],
            "modified_time": "2026-05-25T15:52:00Z"
        },
        {
            "sha256": "f9ab695228e46f51bbe301f5636f95085b3de70ae68ac78f4d0068d765b36259",
            "source": "amazon-inspector",
            "modified_time": "2026-06-08T20:30:05Z",
            "id": "IN-MAL-2026-004937",
            "versions": [
                "1.0.12"
            ],
            "import_time": "2026-06-08T21:15:22.347239867Z"
        },
        {
            "import_time": "2026-06-08T21:15:22.582565654Z",
            "source": "amazon-inspector",
            "sha256": "46833da674c8bddff3d8228119924163f8c8cdaad6eb0becb438ad7af500e0fd",
            "id": "IN-MAL-2026-004941",
            "versions": [
                "1.0.13"
            ],
            "modified_time": "2026-06-08T20:33:06Z"
        },
        {
            "modified_time": "2026-06-08T20:33:05Z",
            "source": "amazon-inspector",
            "sha256": "58513dbcb2aee5d8e938f171e6fe6da9c91879f4c96fa865294905fccda10be2",
            "id": "IN-MAL-2026-004940",
            "versions": [
                "1.0.13"
            ],
            "import_time": "2026-06-08T21:15:22.529282253Z"
        },
        {
            "sha256": "6874469b5e3be472fd23895eaf5df91e8d36e986aff2b70094082b608920ca39",
            "source": "amazon-inspector",
            "import_time": "2026-06-08T21:15:22.303365154Z",
            "id": "IN-MAL-2026-004936",
            "versions": [
                "1.0.12"
            ],
            "modified_time": "2026-06-08T20:30:04Z"
        },
        {
            "import_time": "2026-06-09T11:22:38.39901852Z",
            "source": "ghsa-malware",
            "modified_time": "2026-06-09T11:04:12Z",
            "id": "GHSA-qvmc-2hcj-8h4f",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "71f280ff0423062f06e45d9a15b65e9dad0b791098bfcc9c5584f6084d28d300"
        }
    ]
}
References
Credits

Affected packages

npm / path-extend

Package

Affected ranges

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

Affected versions

1.*
1.0.6
1.0.10
1.0.11
1.0.12
1.0.13

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/path-extend/MAL-2026-2929.json"
indicators
{
    "package_integrity": [
        {
            "filename": "path-extend-1.0.10.tgz",
            "hashes": {
                "sha1": "08ba7ada3da309b252a5e7a9db1a550f6ce0f262",
                "sha512_sri": "sha512-gE9g27egDt6syHMTBiApi0JjJmvnNitTxZIiXMj0Azx0tvXnONcREL3qMDt4NahMOOJ4UJrf8qJz3llouSm/MQ=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "8f8295085545654a9a3677b0df0a340ef77684e34215ab00f89ce6502f72e79a2fefd8",
            "path": "path.js",
            "sha256": "950438dfb5a796cd1e05982ab849858ce838218e171b7eeddd2b208b3cd33e38"
        },
        {
            "tlsh": "44e08621cd54ec3344d662a43d35461ba1a18d470805fc0837965f5caf8e56f71b46ad",
            "path": "package.json",
            "sha256": "088088141e0d5a452cced7d2b70d97307bfb74152de42848d90c6bfac25a330e"
        }
    ],
    "domains": [
        "www.jsonkeeper.com"
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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."
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]