Skip to content

Conversation

@q1blue
Copy link

@q1blue q1blue commented Nov 19, 2025

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Prototype Pollution
SNYK-JS-EXPREVAL-13508636
  184  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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 from a monolithic to a modular package architecture.

  • Introduced new scoped packages: @langchain/community, @langchain/core, and @langchain/openai
  • Upgraded @anthropic-ai/sdk from 0.4.3 to 0.9.1
  • Upgraded openai package from 3.2.1 to 4.104.0 with breaking dependency changes
  • Removed deprecated dependencies: @dqbd/tiktoken, @fortaine/fetch-event-source, browser-or-node, isomorphic-fetch
  • Added modern replacements including js-tiktoken and native fetch implementations
  • Updated transitive dependencies for form data handling, digest authentication, and web streams polyfills

@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
agent-gpt Error Error Nov 19, 2025 1:13am
solana-ai-agent-gpt5 Error Error Nov 19, 2025 1:13am

@snyk-io
Copy link

snyk-io bot commented Nov 19, 2025

Snyk checks have failed. 1 issues have been found so far.

Status Scanner Critical High Medium Low Total (1)
Open Source Security 0 0 1 0 1 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sonarqubecloud
Copy link

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedlangchain@​0.0.63 ⏵ 0.1.2997 +196100 +1698100

View full report

@entelligence-ai-pr-reviews
Copy link

Entelligence AI Vulnerability Scanner

Status: No security vulnerabilities found

Your code passed our comprehensive security analysis.

@entelligence-ai-pr-reviews
Copy link

Walkthrough

This 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) that replace the previous single-package approach. Additionally, major dependency upgrades include @anthropic-ai/sdk (0.4.3 → 0.9.1) and openai (3.2.1 → 4.104.0). The update removes several deprecated dependencies and replaces them with modern alternatives, including transitioning from custom fetch implementations to native fetch APIs, and updating tokenization libraries. Numerous transitive dependencies are also updated to support the new modular architecture.

Changes

File(s) Summary
package.json Updated langchain dependency from ^0.0.63 to ^0.1.29, representing a significant minor version upgrade with potential breaking changes and new features.
package-lock.json Updated langchain from 0.0.63 to 0.1.29 with new modular dependencies (@langchain/community, @langchain/core, @langchain/openai); upgraded @anthropic-ai/sdk from 0.4.3 to 0.9.1; upgraded openai from 3.2.1 to 4.104.0; removed deprecated dependencies (@dqbd/tiktoken, @fortaine/fetch-event-source, browser-or-node, isomorphic-fetch); added modern replacements (js-tiktoken, native fetch implementations); updated numerous transitive dependencies to support the new modular architecture.

Sequence Diagram

This 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 OpenAISDK as openai SDK (v4.104)
    participant Anthropic as @anthropic-ai/sdk (v0.9.1)
    participant LangSmith as langsmith
    participant Tiktoken as js-tiktoken

    Note over App,Tiktoken: Major Version Upgrade: Modular Architecture

    App->>LC: Initialize LangChain
    LC->>Core: Load core abstractions
    Core->>Tiktoken: Initialize tokenizer
    
    alt OpenAI Provider
        App->>LC: Request LLM operation
        LC->>OpenAI: Route to OpenAI module
        OpenAI->>Tiktoken: Tokenize input
        OpenAI->>OpenAISDK: API call (new v4 interface)
        Note over OpenAISDK: New: Uses node-fetch,<br/>agentkeepalive,<br/>form-data-encoder
        OpenAISDK-->>OpenAI: Response
        OpenAI->>LangSmith: Log interaction
        OpenAI-->>App: Return result
    else Anthropic Provider
        App->>LC: Request LLM operation
        LC->>Community: Route to community integrations
        Community->>Anthropic: API call (new v0.9 interface)
        Note over Anthropic: New: Uses digest-fetch,<br/>web-streams-polyfill,<br/>formdata-node
        Anthropic-->>Community: Response
        Community->>LangSmith: Log interaction
        Community-->>App: Return result
    else Other Providers
        App->>LC: Request LLM operation
        LC->>Community: Route to community provider
        Community->>LangSmith: Log interaction
        Community-->>App: Return result
    end

    Note over App,LangSmith: New Features:<br/>- Modular provider architecture<br/>- Unified logging via LangSmith<br/>- Updated HTTP clients<br/>- Modern streaming support
Loading

▶️AI Code Reviews for VS Code, Cursor, Windsurf
Install the extension

Note for Windsurf Please 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 below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !

Also you can trigger various commands with the bot by doing
@entelligenceai command

The current supported commands are

  1. config - shows the current config
  2. retrigger_review - retriggers the review

More commands to be added soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants