@langgraphjs/toolkit (npm) · Malicious Code
Affects @langgraphjs/toolkitSource GCVE Database
Malicious package : remove @langgraphjs/toolkit and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:55 UTC
Malicious package
Published to npm · OSV MAL-2026-2509
What to do
Remove @langgraphjs/toolkit from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@langgraphjs/toolkit | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @langgraphjs/toolkit versions 1.2.10 and 1.2.11 contains malicious code that executes a postinstall script to collect sensitive system information and exfiltrate it to a hardcoded external server. The package impersonates the LangChain/LangGraph ecosystem to deceive users. The exfiltrated data includes hostname, OS username, current working directory, git committer email, and GitHub login/email, violating user consent and privacy. Installation of this package may lead to full system compromise, requiring immediate secret and key rotation and package removal.
References
- app.safedep.io/community/malysis/01KNKXNEVJTCVM0RAC2DGCMP01 (opens in a new tab)
- npmjs.com/package/@langgraphjs/toolkit/v/1.2.10 (opens in a new tab)
- npmjs.com/package/@langgraphjs/toolkit/v/1.2.11 (opens in a new tab)
- npmjs.com/package/@langgraphjs/toolkit/v/1.2.12 (opens in a new tab)
- github.com/advisories/GHSA-pq32-2vxj-cr62 (opens in a new tab)
- npmjs.com/package/@langgraphjs/toolkit/v/1.2.13 (opens in a new tab)