Skip to main content
MalwarePublished Updated

@langgraphjs/toolkit (npm) · Malicious Code

Affects @langgraphjs/toolkitSource GCVE Database

0

Malicious package : remove @langgraphjs/toolkit and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 15:55 UTC

Classification

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

ProductAffectedFixed in
npm@langgraphjs/toolkitAffected
  • 1.2.10 – 1.2.13
4 affected builds
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

Community reviews

Loading reviews…