-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade langchain from 0.0.63 to 0.1.29 #73
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-13833679
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
|
🔒 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 OpenAI as @langchain/openai
participant Community as @langchain/community
participant Smith as langsmith
participant Hub as langchainhub
participant Anthropic as @anthropic-ai/sdk (v0.9.1)
participant OpenAISDK as openai (v4.104.0)
participant Redis as @upstash/redis (v1.35.6)
Note over App,Redis: Initialization Phase
App->>LC: Initialize LangChain
LC->>Core: Load core abstractions
Core-->>LC: Core components ready
LC->>OpenAI: Initialize OpenAI integration
OpenAI->>OpenAISDK: Connect to OpenAI API
OpenAISDK-->>OpenAI: Connection established
LC->>Community: Load community integrations
Community-->>LC: Integrations ready
Note over App,Redis: LLM Request Flow
App->>LC: Create LLM chain/agent
LC->>Core: Use base abstractions
alt OpenAI Model
LC->>OpenAI: Route to OpenAI provider
OpenAI->>OpenAISDK: Make API call
OpenAISDK-->>OpenAI: Return response
OpenAI-->>LC: Formatted response
else Anthropic Model
LC->>Community: Route to Anthropic integration
Community->>Anthropic: Make API call
Anthropic-->>Community: Return response
Community-->>LC: Formatted response
end
Note over App,Redis: Observability & Tracing
LC->>Smith: Log chain execution
Smith-->>LC: Tracking confirmed
Note over App,Redis: Prompt Management
App->>Hub: Fetch prompt template
Hub-->>App: Return template
App->>LC: Execute with template
Note over App,Redis: Caching Layer
LC->>Redis: Check cache
alt Cache Hit
Redis-->>LC: Return cached result
else Cache Miss
Redis-->>LC: No cache
LC->>OpenAI: Execute request
OpenAI-->>LC: Response
LC->>Redis: Store in cache
end
LC-->>App: Final response
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] Security upgrade langchain from 0.0.63 to 0.1.29
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|



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-13833679
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 and updating critical dependencies.