-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade langchain from 0.0.63 to 0.1.29 #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EXPREVAL-13508636
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
⛔ Snyk checks have failed. 1 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
🔒 Entelligence AI Vulnerability Scanner ✅ No security vulnerabilities found! Your code passed our comprehensive security analysis. |
WalkthroughThis PR upgrades the LangChain library from version 0.0.63 to 0.1.29, representing a significant architectural shift from a monolithic package to a modular structure. The update introduces new scoped packages (@langchain/community, @langchain/core, @langchain/openai) and upgrades critical dependencies including @anthropic-ai/sdk (0.4.3→0.9.1) and openai (3.2.1→4.104.0). Several deprecated packages are removed and replaced with modern alternatives: @dqbd/tiktoken is replaced with js-tiktoken, and isomorphic-fetch dependencies are replaced with native fetch implementations. New utility packages (langsmith, langchainhub, mustache, decamelize) are added to support enhanced functionality. The @upstash/redis package is updated to use uncrypto instead of isomorphic-fetch for cryptographic operations. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant App as Application
participant LC as langchain (v0.1.29)
participant Core as @langchain/core
participant Community as @langchain/community
participant OpenAI as @langchain/openai
participant Hub as langchainhub
participant Smith as langsmith
participant Anthropic as @anthropic-ai/sdk (v0.9.1)
participant OpenAIAPI as openai (v4.104.0)
participant Redis as @upstash/redis (v1.35.6)
participant Tiktoken as js-tiktoken
App->>LC: Initialize LangChain
LC->>Core: Load core abstractions
Core->>Tiktoken: Initialize tokenizer
Tiktoken-->>Core: Tokenizer ready
LC->>Community: Load community integrations
Community->>Core: Register integrations
LC->>OpenAI: Initialize OpenAI provider
OpenAI->>Core: Register as LLM provider
OpenAI->>OpenAIAPI: Setup API client
OpenAIAPI-->>OpenAI: Client configured
App->>LC: Create LLM chain
LC->>Hub: Fetch prompt template
Hub-->>LC: Return template
LC->>Smith: Initialize tracing
Smith-->>LC: Tracing enabled
App->>LC: Execute chain with input
alt Using OpenAI
LC->>OpenAI: Route to OpenAI provider
OpenAI->>OpenAIAPI: Send completion request
OpenAIAPI-->>OpenAI: Return response
OpenAI->>Smith: Log interaction
else Using Anthropic
LC->>Community: Route to Anthropic integration
Community->>Anthropic: Send message request
Anthropic-->>Community: Return response
Community->>Smith: Log interaction
end
LC->>Redis: Cache result
Redis-->>LC: Cached
LC->>Core: Process response through chain
Core->>Tiktoken: Count tokens
Tiktoken-->>Core: Token count
LC-->>App: Return final output
Note over LC,Smith: New modular architecture<br/>separates concerns and<br/>enables better extensibility
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |



Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonpackage-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-EXPREVAL-13508636
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution
EntelligenceAI PR Summary
This PR upgrades LangChain from 0.0.63 to 0.1.29, transitioning to a modular architecture with breaking changes in dependencies.