Malicious code in @langgraphjs/toolkit (npm)
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.
AI Analysis
Technical Summary
The @langgraphjs/toolkit npm package versions 1.2.10 and 1.2.11 include a malicious postinstall script that harvests sensitive system and user identity information such as os.hostname(), os.userInfo().username, process.cwd(), git committer email from local git config files, and GitHub login/email from the GitHub CLI configuration. This data is sent via HTTPS POST to a hardcoded Google Cloud Run endpoint unrelated to the legitimate LangChain/LangGraph project. The package name and install instructions impersonate the official ecosystem to mislead users. The README falsely claims only anonymized data is transmitted, concealing the actual sensitive data exfiltration. This behavior constitutes namespace impersonation combined with consent-violating identity theft on install. The package compromises the host system's security and privacy.
Potential Impact
Installation of the affected versions of @langgraphjs/toolkit results in unauthorized exfiltration of sensitive system and user identity information to an attacker-controlled server. This breach of confidentiality can lead to full system compromise. The malicious package may allow attackers to gain control over the affected computer, exposing all stored secrets and keys. Consequently, any secrets or credentials on the compromised system should be considered exposed and rotated immediately. Removal of the package alone does not guarantee remediation due to potential persistence of other malicious components.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The recommended mitigation is to immediately remove the @langgraphjs/toolkit package versions 1.2.10 and 1.2.11 from all affected systems. All secrets, keys, and credentials stored on compromised machines should be rotated from a secure, uncompromised environment. Users should avoid installing packages that impersonate trusted ecosystems and verify package authenticity before installation. Monitor for any suspicious activity resulting from this compromise.
Malicious code in @langgraphjs/toolkit (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @langgraphjs/toolkit npm package versions 1.2.10 and 1.2.11 include a malicious postinstall script that harvests sensitive system and user identity information such as os.hostname(), os.userInfo().username, process.cwd(), git committer email from local git config files, and GitHub login/email from the GitHub CLI configuration. This data is sent via HTTPS POST to a hardcoded Google Cloud Run endpoint unrelated to the legitimate LangChain/LangGraph project. The package name and install instructions impersonate the official ecosystem to mislead users. The README falsely claims only anonymized data is transmitted, concealing the actual sensitive data exfiltration. This behavior constitutes namespace impersonation combined with consent-violating identity theft on install. The package compromises the host system's security and privacy.
Potential Impact
Installation of the affected versions of @langgraphjs/toolkit results in unauthorized exfiltration of sensitive system and user identity information to an attacker-controlled server. This breach of confidentiality can lead to full system compromise. The malicious package may allow attackers to gain control over the affected computer, exposing all stored secrets and keys. Consequently, any secrets or credentials on the compromised system should be considered exposed and rotated immediately. Removal of the package alone does not guarantee remediation due to potential persistence of other malicious components.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The recommended mitigation is to immediately remove the @langgraphjs/toolkit package versions 1.2.10 and 1.2.11 from all affected systems. All secrets, keys, and credentials stored on compromised machines should be rotated from a secure, uncompromised environment. Users should avoid installing packages that impersonate trusted ecosystems and verify package authenticity before installation. Monitor for any suspicious activity resulting from this compromise.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-2509
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef76a27e9c79719fee81c
Added to database: 06/26/2026, 22:04:26 UTC
Last enriched: 07/08/2026, 15:07:15 UTC
Last updated: 07/21/2026, 06:17:09 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.