-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade solana-agent-kit from 1.3.7 to 2.0.1 #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,6 @@ | |
| }, | ||
| "dependencies": { | ||
| "@langchain/langgraph-checkpoint-postgres": "^0.1.2", | ||
| "solana-agent-kit": "^1.3.7" | ||
| "solana-agent-kit": "^2.0.1" | ||
|
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package.json dependency update to solana-agent-kit 2.0.1 is ineffective because the code imports from the local source directory ("../../src") instead of from the npm package. Line 8 of index.ts imports from "../../src", which means the declared dependency in package.json is unused.
To fix the security vulnerabilities addressed by this PR, the import statement in index.ts needs to be changed to import from "solana-agent-kit" instead of "../../src". All other examples in the repository (agent-kit-langgraph, discord-bot-starter, persistent-agent) import from the npm package directly.