[Snyk] Security upgrade langchain from 0.3.31 to 1.0.1#892
[Snyk] Security upgrade langchain from 0.3.31 to 1.0.1#892graymalkin77 wants to merge 1 commit intomasterfrom
Conversation
…k.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LANGSMITH-15969264
|
The upgrade from Key Breaking Changes:
Source: LangChain v1 Migration Guide, Release Notes Recommendation: This upgrade requires a significant refactoring effort. Developers must carefully follow the official migration guide to update package imports, agent creation logic, and method calls to align with the new v1.0 API. This should be handled in a separate, dedicated effort before merging.
|
✅ 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. |
There was a problem hiding this comment.
Pull request overview
Updates the extensions/diffbot extension’s npm dependencies to address a Snyk-reported vulnerability by upgrading langchain to a new major version.
Changes:
- Bump
langchainfrom0.3.31to1.0.1inextensions/diffbot/package.json. - Regenerate
extensions/diffbot/package-lock.json, updating transitive dependencies pulled in by the newlangchainversion.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| extensions/diffbot/package.json | Pins langchain to 1.0.1 to remediate the reported vulnerability path. |
| extensions/diffbot/package-lock.json | Updates the resolved dependency tree for langchain@1.0.1 and related transitive packages. |
Files not reviewed (1)
- extensions/diffbot/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "flattie": "1.1.1", | ||
| "json-to-plain-text": "1.2.0", | ||
| "langchain": "0.3.31" | ||
| "langchain": "^1.0.1" |
There was a problem hiding this comment.
In package.json the dependency spec is pinned to "langchain": "1.0.1", but the lockfile records it as "langchain": "^1.0.1" under packages[""]. This spec mismatch will cause npm install to rewrite the lockfile and can lead to unexpected version drift. Update the lockfile entry to match the exact spec (or change package.json to use the caret) and regenerate the lockfile with the repo’s intended npm version.
| "langchain": "^1.0.1" | |
| "langchain": "1.0.1" |
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
extensions/diffbot/package.jsonextensions/diffbot/package-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-LANGSMITH-15969264
Breaking Change Risk
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