MAL-2026-10420

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/path-addon-extend/MAL-2026-10420.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10420
Aliases
  • GHSA-8535-q23c-9jr2
Published
2026-07-13T06:59:11Z
Modified
2026-07-15T05:20:09Z
Summary
Malicious code in path-addon-extend (npm)
Details

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

Source: amazon-inspector (b383636076e2701a372675c281ee82463d97529ed7d8db027276aa8a8b68b966)

path-addon-extend presents itself as a copy of Node's built-in path module. On module load, path.js issues an HTTPS GET to a base64-obscured URL that decodes to https://json.extendsclass.com/bin/567893d4e220 and passes the response's .content field directly to eval(). The destination is a public JSON-bin service whose contents can be mutated at any time by the publisher (or anyone in possession of the bin token), giving arbitrary remote code execution in any process that requires this package. The endpoint is stored as a base64 literal decoded via atob(...) at call time rather than as a plain string, concealing the destination in a package that otherwise mirrors the Node core path module.

Source: ghsa-malware (269b863a397d80c2aab7accda81b048146ef026773dd5094594c73a228a2f7ea)

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-009851",
            "import_time": "2026-07-13T07:40:13.227841771Z",
            "modified_time": "2026-07-13T06:59:17Z",
            "sha256": "60906e93ae3b838d259b7ebdb6874779e3c2f83d652488cf3b0039a4844a4db3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-009850",
            "import_time": "2026-07-13T07:40:13.158063878Z",
            "modified_time": "2026-07-13T06:59:11Z",
            "sha256": "b383636076e2701a372675c281ee82463d97529ed7d8db027276aa8a8b68b966",
            "source": "amazon-inspector",
            "versions": [
                "1.0.8"
            ]
        },
        {
            "id": "IN-MAL-2026-010254",
            "import_time": "2026-07-13T14:19:34.384075121Z",
            "modified_time": "2026-07-13T14:13:51Z",
            "sha256": "dc6f45713a4c8d8c90cce16029861320edb37ecbd83ac343bcf3ecc6db105e62",
            "source": "amazon-inspector",
            "versions": [
                "1.0.10"
            ]
        },
        {
            "id": "GHSA-8535-q23c-9jr2",
            "import_time": "2026-07-15T05:00:56.78990741Z",
            "modified_time": "2026-07-14T23:21:23Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "269b863a397d80c2aab7accda81b048146ef026773dd5094594c73a228a2f7ea",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / path-addon-extend

Package

Name
path-addon-extend
View open source insights on deps.dev
Purl
pkg:npm/path-addon-extend

Affected ranges

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

Affected versions

1.*
1.0.7
1.0.8
1.0.10

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "path.js",
            "sha256": "d429f669b0a35fef8f0b016641ebd6a87d494f5ff11c7d41ee8b43ab129d7d39",
            "tlsh": "8972a644594571499a3677b0df0a340ef77684f35215ab00f89cea502f72e78a2feee8"
        }
    ],
    "package_integrity": [
        {
            "filename": "path-addon-extend-1.0.7.tgz",
            "hashes": {
                "sha1": "f36a3492a442fd47e6be006cc48f23f61836e2dd",
                "sha512_sri": "sha512-aOOTlsTf8snrbd/Ff7ZjrAoeWMcV2lTMfnhKONgLLZ0PWklV2Ob6vL4Ki1UOSqyGW9NJAzMurGeT92Afe+xmyg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/path-addon-extend/MAL-2026-10420.json"