MAL-2026-2509

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@langgraphjs/toolkit/MAL-2026-2509.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-2509
Aliases
  • GHSA-pq32-2vxj-cr62
Published
2026-04-07T12:15:13Z
Modified
2026-07-08T21:46:54.280702871Z
Summary
Malicious code in @langgraphjs/toolkit (npm)
Details

Package collects and sends sensitive system info to a hardcoded server. The package masquerades as a LangGraph JS utility but contains a malicious postinstall script.


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

Source: amazon-inspector (8997da61c158afa991f24db840b0117557564c2f3eca4204380b472a35dc811e)

The package's scripts/postinstall.js executes on npm install and collects installer-side identity and cloud/git metadata, then POSTs it as JSON to a hardcoded Google Cloud Run endpoint at npm-package-logger-228835561205.europe-west1.run.app. Collected data includes: git-configured emails from ~/.gitconfig,.git/config, and up to 15 reflog HEAD author emails; GitHub CLI login and email from hosts.yml; SSH public key comments from ~/.ssh/*.pub; GCP project and account identifiers from ~/.config/gcloud/properties; AWS profile names from ~/.aws/config; /etc/resolv.conf search domain; os.hostname(), os.userInfo().username, os.platform(), and cwd; plus parent project package.json details. The package name @langgraphjs/toolkit impersonates the legitimate @langchain/langgraph ecosystem (and the langgraphjs.guide domain referenced in the script), and declares @langchain/langgraph and @langchain/core as dependencies to appear legitimate. Its advertised main entry dist/index.js is not shipped in the tarball — only src/ and scripts/ — so the only code that actually runs on install is the harvester. Behavior is framed as anonymous telemetry/compatibility diagnostics, but the systematic enumeration of ~/.ssh, ~/.aws, ~/.config/gcloud, ~/.gitconfig, and git reflog is credential-adjacent identity theft, not telemetry.

Source: ghsa-malware (417cbe13d7382f7491f381d4d2c5cb34c2f8f90addabece3073296a1839f285f)

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": [
        {
            "sha256": "5da55bbb47afb596b9c1cfdb5e7e506568fe98d8f55690ef0e62af9a23a9ea4d",
            "import_time": "2026-04-10T17:21:49.838154183Z",
            "modified_time": "2026-04-10T17:02:58Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.2.10"
            ],
            "id": "IN-MAL-2026-005818",
            "import_time": "2026-06-12T19:43:36.55971976Z",
            "modified_time": "2026-06-12T19:02:36Z",
            "sha256": "274245b3c75b3f39ef78565ae52347547a651bf2a3f9c6510c6d83832c7311a2",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.2.10"
            ],
            "id": "IN-MAL-2026-005819",
            "modified_time": "2026-06-12T19:02:37Z",
            "import_time": "2026-06-12T19:43:36.656512267Z",
            "sha256": "b35ab710ea743243a1edc74aad1ef0774efdd42d56a0b648fde3a9791e3a5012",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.2.11"
            ],
            "id": "IN-MAL-2026-007657",
            "modified_time": "2026-06-26T19:47:48Z",
            "import_time": "2026-06-26T20:38:47.333886148Z",
            "sha256": "141df645ce9e91c3eb9e0720891753dbb78802e1f0e9d6e068f9fc7554f04cfb",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.2.12"
            ],
            "id": "IN-MAL-2026-007759",
            "import_time": "2026-06-29T07:09:10.623879483Z",
            "sha256": "dff4b6945e28f0b023c4afeddcd13de383dde642860f70b9442227b0e27a5ba7",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-06-29T05:51:55Z"
        },
        {
            "sha256": "417cbe13d7382f7491f381d4d2c5cb34c2f8f90addabece3073296a1839f285f",
            "id": "GHSA-pq32-2vxj-cr62",
            "import_time": "2026-07-07T15:15:50.723713407Z",
            "modified_time": "2026-07-07T13:59:39Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "8997da61c158afa991f24db840b0117557564c2f3eca4204380b472a35dc811e",
            "id": "IN-MAL-2026-008603",
            "import_time": "2026-07-08T21:27:49.650787087Z",
            "modified_time": "2026-07-08T20:34:56Z",
            "versions": [
                "1.2.13"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @langgraphjs/toolkit

Package

Name
@langgraphjs/toolkit
View open source insights on deps.dev
Purl
pkg:npm/%40langgraphjs/toolkit

Affected ranges

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

Affected versions

1.*
1.2.10
1.2.11
1.2.12
1.2.13

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "1fc1a6b253ea11123651e7ddb22b0041e7b9f2133908e8a4b96d73065fcdd3843b39ba",
            "sha256": "a336bd4fbdc46e5a3e9437baef19f9ee4cdac8716eba3a48ced1cb26a4335fa1",
            "path": "scripts/postinstall.js"
        },
        {
            "tlsh": "96118820e9258e3313c80a9a68250103ad36e80f8d16bc4cb7d6031dcb5e97f15be2ad",
            "sha256": "8a824586be67088024831a1f5ea2f4ac0452494178876fafce940f3c58708c10",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "toolkit-1.2.10.tgz",
            "hashes": {
                "sha512_sri": "sha512-wlBU8+/TNWftn0sB9DwV6Liyg/GnU1UauDHTXZQx8BgwSBbRR/WGDkkkkkLKCaakg95uOANKSthV6Gkbr3LgrQ==",
                "sha1": "9fa25b10ce33b28dfaa3e1902f26875b13c99fd1"
            }
        }
    ],
    "domains": [
        "npm-package-logger-228835561205.europe-west1.run.app"
    ]
}
cwes
[
    {
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@langgraphjs/toolkit/MAL-2026-2509.json"