Skip to content

[Snyk] Fix for 3 vulnerabilities#50

Open
SMSDAO wants to merge 1 commit intomainfrom
snyk-fix-bcffb40487e0764dd1e1be12b53047ea
Open

[Snyk] Fix for 3 vulnerabilities#50
SMSDAO wants to merge 1 commit intomainfrom
snyk-fix-bcffb40487e0764dd1e1be12b53047ea

Conversation

@SMSDAO
Copy link
Owner

@SMSDAO SMSDAO commented Feb 16, 2026

snyk-top-banner

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.json
  • examples/agent-kit-langgraph/pnpm-lock.yaml

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Prototype Pollution
SNYK-JS-AXIOS-15252993
  828  
medium severity Server-side Request Forgery (SSRF)
SNYK-JS-LANGCHAINCOMMUNITY-15268428
  541  
medium severity Server-side Request Forgery (SSRF)
SNYK-JS-LANGCHAINCORE-15268429
  541  

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
🦉 Server-side Request Forgery (SSRF)

Copilot AI review requested due to automatic review settings February 16, 2026 05:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
"@langchain/community": "^0.3.20",
"@langchain/core": "^0.3.26",
"@langchain/community": "^1.1.14",
"@langchain/core": "^1.1.14",
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
"@solana/web3.js": "^1.98.0",
"dotenv": "^16.4.7",
"solana-agent-kit": "^1.3.0",
"solana-agent-kit": "^2.0.1",
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
"solana-agent-kit": "^2.0.1",
"solana-agent-kit": "2.0.1",

Copilot uses AI. Check for mistakes.
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