-
Notifications
You must be signed in to change notification settings - Fork 47
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
Patches and various version bumps #1728
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@kleros/kleros-sdk", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "SDK for Kleros version 2", | ||
"repository": "[email protected]:kleros/kleros-v2.git", | ||
"author": "Kleros", | ||
|
@@ -44,10 +44,10 @@ | |
"vitest": "^1.1.3" | ||
}, | ||
"dependencies": { | ||
"@reality.eth/reality-eth-lib": "^3.2.30", | ||
"@reality.eth/reality-eth-lib": "^3.2.43", | ||
"@urql/core": "^5.0.8", | ||
"mustache": "^4.2.0", | ||
"viem": "^2.21.26", | ||
"viem": "^2.21.35", | ||
"zod": "^3.22.4" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,10 @@ | |
"prettier-config", | ||
"tsconfig" | ||
], | ||
"packageManager": "yarn@4.0.2+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186", | ||
"packageManager": "yarn@4.5.1", | ||
"volta": { | ||
"node": "20.11.0", | ||
"yarn": "4.3.1" | ||
"yarn": "4.5.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.8.1", | ||
|
@@ -62,7 +62,10 @@ | |
"eth-sig-util@npm:^1.4.2": "3.0.0", | ||
"fast-xml-parser": "^4.2.5", | ||
"@babel/traverse:^7.22.5": "^7.23.6", | ||
"yargs-unparser@npm:1.6.0": "1.6.4" | ||
"yargs-unparser@npm:1.6.0": "1.6.4", | ||
"dompurify@npm:^2.4.0": "2.5.7", | ||
"secp256k1@npm:^4.0.1": "4.0.4", | ||
"ws@npm:^8.11.0": "8.18.0" | ||
Comment on lines
+66
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Additional vulnerable package versions found - needs attention The yarn.lock analysis reveals some concerning dependencies that need to be addressed:
Recommendations:
🔗 Analysis chainLGTM: Security vulnerabilities addressed with appropriate version updates. The added resolutions successfully address the reported vulnerabilities:
Let's verify these are the only instances of the vulnerable packages: Let me check the exact versions in the yarn.lock file to ensure all vulnerable versions are properly addressed. Let me try a different approach to check the yarn.lock content: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any other instances of the vulnerable packages
# that might need updating
echo "Checking for other instances of vulnerable packages..."
rg -l "dompurify.*2\.4\." || echo "No vulnerable dompurify versions found"
rg -l "secp256k1.*4\.0\.3" || echo "No vulnerable secp256k1 versions found"
rg -l "ws.*8\.16\.0" || echo "No vulnerable ws versions found"
Length of output: 304 Script: #!/bin/bash
# Check the specific versions in yarn.lock
echo "Checking dompurify versions in yarn.lock:"
rg "dompurify@npm.*version" -A 2 yarn.lock
echo -e "\nChecking secp256k1 versions in yarn.lock:"
rg "secp256k1@npm.*version" -A 2 yarn.lock
Length of output: 281 Script: #!/bin/bash
# Check for any version strings in yarn.lock for these packages
echo "Checking dompurify in yarn.lock:"
rg "dompurify@npm" -A 5 yarn.lock
echo -e "\nChecking secp256k1 in yarn.lock:"
rg "secp256k1@npm" -A 5 yarn.lock
echo -e "\nChecking package.json for these dependencies:"
rg "\"(dompurify|secp256k1|ws)\":" package.json
Length of output: 2776 |
||
}, | ||
"scripts": { | ||
"check-prerequisites": "scripts/check-prerequisites.sh", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../web/.env.devnet-neo.public |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../web/.env.devnet-university.public |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../web/.env.devnet.public |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"packageManager": "[email protected]+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix package manager version inconsistency. The Apply this diff to update the packageManager field: - "packageManager": "[email protected]+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186",
+ "packageManager": "[email protected]" Also applies to: 13-13 |
||
"volta": { | ||
"node": "20.11.0", | ||
"yarn": "4.3.1" | ||
"yarn": "4.5.1" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf .next src/graphql-generated src/hooks/contracts/generated.ts", | ||
|
@@ -28,13 +28,13 @@ | |
"@graphql-codegen/cli": "^5.0.2", | ||
"@graphql-codegen/client-preset": "^4.3.2", | ||
"@svgr/webpack": "^8.1.0", | ||
"@types/node": "^20", | ||
"@types/node": "^20.17.1", | ||
"@types/react": "18.2.0", | ||
"@types/react-dom": "^18.2.18", | ||
"@typescript-eslint/eslint-plugin": "^8.8.1", | ||
"@typescript-eslint/parser": "^8.8.1", | ||
"@typescript-eslint/utils": "^8.8.1", | ||
"@wagmi/cli": "^2.0.3", | ||
"@wagmi/cli": "^2.1.16", | ||
"eslint": "^8.57.1", | ||
"eslint-config-next": "^14.2.15", | ||
"eslint-config-prettier": "^9.1.0", | ||
|
@@ -49,7 +49,7 @@ | |
"@kleros/kleros-sdk": "workspace:^", | ||
"@kleros/ui-components-library": "^2.15.0", | ||
"@web3modal/wagmi": "^5.1.11", | ||
"graphql": "^16.8.1", | ||
"graphql": "^16.9.0", | ||
"graphql-request": "^7.1.0", | ||
"next": "14.2.14", | ||
"react": "^18.2.0", | ||
|
@@ -58,7 +58,7 @@ | |
"react-toastify": "^10.0.5", | ||
"typewriter-effect": "^2.21.0", | ||
"vanilla-jsoneditor": "^0.21.4", | ||
"viem": "^2.1.0", | ||
"wagmi": "^2.2.1" | ||
"viem": "^2.21.35", | ||
"wagmi": "^2.12.25" | ||
} | ||
} |
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.
💡 Codebase verification
Dependency updates need attention for security vulnerabilities
The dependency tree analysis shows that the vulnerable packages are present in the project:
While the routine updates to @logtail/pino and other packages are good, they don't address the security vulnerabilities mentioned in the PR objectives. The project still includes potentially vulnerable versions of these packages through dependencies.
🔗 Analysis chain
LGTM! Version updates look appropriate.
The dependency updates appear to be routine maintenance updates to newer patch/minor versions, which is a good practice for keeping dependencies up-to-date with bug fixes and improvements.
Let's verify if any of these updates indirectly address the reported vulnerabilities:
Also applies to: 76-77, 83-83, 95-95, 106-106
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 471
Script:
Length of output: 7311