Conversation
…anggraph/pnpm-lock.yaml to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-AXIOS-15252993 - https://snyk.io/vuln/SNYK-JS-LANGCHAINCOMMUNITY-15268428 - https://snyk.io/vuln/SNYK-JS-LANGCHAINCORE-15268429
There was a problem hiding this comment.
Pull request overview
This PR addresses three security vulnerabilities (Prototype Pollution in axios, and two SSRF vulnerabilities in langchain packages) by upgrading dependencies in the agent-kit-langgraph example. The updates include major version bumps for @langchain/community (0.3.20 → 1.1.14), @langchain/core (0.3.26 → 1.1.14), and solana-agent-kit (1.3.0 → 2.0.1). While these upgrades fix critical security issues, they involve breaking changes that require verification, and the scope is limited to only one of multiple examples that use these vulnerable dependencies.
Changes:
- Upgraded @langchain/community to ^1.1.14 to fix SSRF vulnerability
- Upgraded @langchain/core to ^1.1.14 to fix SSRF vulnerability
- Upgraded solana-agent-kit to ^2.0.1 (indirect fix for axios Prototype Pollution)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "dependencies": { | ||
| "@langchain/community": "^0.3.20", | ||
| "@langchain/core": "^0.3.26", | ||
| "@langchain/community": "^1.1.14", |
There was a problem hiding this comment.
This security update upgrades @langchain/community from 0.3.20 to 1.1.14, which is a major version bump. While this fixes the SSRF vulnerability (SNYK-JS-LANGCHAINCOMMUNITY-15268428), major version bumps typically include breaking changes. The PR should include verification that the example still works correctly with these updated dependencies. Additionally, the agent-kit-nextjs-langchain example uses @langchain/community@^0.3.11, which likely has the same SSRF vulnerability and should be updated in the same PR for consistency.
| "@langchain/community": "^0.3.20", | ||
| "@langchain/core": "^0.3.26", | ||
| "@langchain/community": "^1.1.14", | ||
| "@langchain/core": "^1.1.14", |
There was a problem hiding this comment.
This security update upgrades @langchain/core from 0.3.26 to 1.1.14, which is a major version bump. While this fixes the SSRF vulnerability (SNYK-JS-LANGCHAINCORE-15268429), major version bumps typically include breaking changes. The agent-kit-nextjs-langchain example uses @langchain/core@^0.3.17, which likely has the same SSRF vulnerability and should be updated for security consistency. Note that the main package.json uses @langchain/core@^0.3.26, which creates a version mismatch, but this may be acceptable as examples can have different dependency versions than the main package.
| "@solana/web3.js": "^1.98.0", | ||
| "dotenv": "^16.4.7", | ||
| "solana-agent-kit": "^1.3.0", | ||
| "solana-agent-kit": "^2.0.1", |
There was a problem hiding this comment.
This upgrades solana-agent-kit from 1.3.0 to 2.0.1, which is a major version bump that may include breaking changes. The persistent-agent example already uses solana-agent-kit@2.0.1 (without caret), suggesting this version is available and in use. However, other examples like agent-kit-nextjs-langchain and discord-bot-starter still use older 1.x versions. For consistency across examples, consider updating all examples to use the same major version, or document why different versions are being used in different examples.
| "solana-agent-kit": "^2.0.1", | |
| "solana-agent-kit": "2.0.1", |
Snyk has created this PR to fix 3 vulnerabilities in the pnpm dependencies of this project.
Snyk changed the following file(s):
examples/agent-kit-langgraph/package.jsonexamples/agent-kit-langgraph/pnpm-lock.yamlVulnerabilities that will be fixed with an upgrade:
SNYK-JS-AXIOS-15252993
SNYK-JS-LANGCHAINCOMMUNITY-15268428
SNYK-JS-LANGCHAINCORE-15268429
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
🦉 Server-side Request Forgery (SSRF)