Skip to content

[Snyk] Fix for 3 vulnerabilities#52

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

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

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):

  • package.json
⚠️ Warning
Failed to update the pnpm-lock.yaml, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Prototype Pollution
SNYK-JS-AXIOS-15252993
  828  
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AJV-15274295
  803  
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:

🦉 Regular Expression Denial of Service (ReDoS)
🦉 Prototype Pollution
🦉 Server-side Request Forgery (SSRF)

Copilot AI review requested due to automatic review settings February 16, 2026 08:04
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 is an automated security fix from Snyk that attempts to address 3 vulnerabilities by upgrading four dependencies: axios (Prototype Pollution), ajv (ReDoS via @langchain dependencies), and @langchain/core (SSRF). However, the PR contains a critical error with a non-existent axios version and may introduce breaking changes.

Changes:

  • Upgrades @drift-labs/sdk from beta version 2.109.0-beta.11 to stable 2.129.0
  • Upgrades @drift-labs/vaults-sdk from ^0.3.29 to ^0.9.90 (major version jump)
  • Upgrades @langchain/core from ^0.3.26 to ^1.1.14 (major version upgrade)
  • Upgrades axios from ^1.7.9 to ^1.13.5 (non-existent version)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"@drift-labs/sdk": "2.109.0-beta.11",
"@drift-labs/vaults-sdk": "^0.3.29",
"@langchain/core": "^0.3.26",
"@drift-labs/sdk": "2.129.0",
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 upgrade transitions from a beta version (2.109.0-beta.11) to a stable release (2.129.0), which is generally a positive change. However, this represents a jump of approximately 20 minor versions. The @drift-labs/sdk is used extensively in src/tools/drift/ for trading operations, market data, and position management. The transition from beta to stable may include API changes or behavioral differences that should be verified through testing.

Suggested change
"@drift-labs/sdk": "2.129.0",
"@drift-labs/sdk": "2.109.0",

Copilot uses AI. Check for mistakes.
"@langchain/core": "^0.3.26",
"@drift-labs/sdk": "2.129.0",
"@drift-labs/vaults-sdk": "^0.9.90",
"@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 is a major version upgrade from 0.3.x to 1.1.x for @langchain/core. Major version changes typically include breaking API changes. The examples/agent-kit-langgraph/package.json uses @langchain/core version ^0.3.26, which may become incompatible with this upgrade. While the main package doesn't directly import from @langchain/core, it depends on other @langchain packages (@langchain/groq, @langchain/langgraph, @langchain/openai) that may have peer dependency requirements on specific @langchain/core versions. These dependencies should be checked for compatibility with @langchain/core 1.1.14.

Suggested change
"@langchain/core": "^1.1.14",
"@langchain/core": "^0.3.26",

Copilot uses AI. Check for mistakes.
"@drift-labs/vaults-sdk": "^0.3.29",
"@langchain/core": "^0.3.26",
"@drift-labs/sdk": "2.129.0",
"@drift-labs/vaults-sdk": "^0.9.90",
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 is a significant minor version upgrade from 0.3.29 to 0.9.90 for @drift-labs/vaults-sdk. This represents approximately 60 minor version increments, which likely includes breaking changes or significant API modifications. The package is used in src/tools/drift/drift.ts and src/tools/drift/drift_vault.ts for vault operations. This upgrade should be tested thoroughly to ensure all vault-related functionality (deposit, withdrawal, vault client initialization) continues to work as expected.

Suggested change
"@drift-labs/vaults-sdk": "^0.9.90",
"@drift-labs/vaults-sdk": "0.9.90",

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