Skip to content

Commit

Permalink
fix(cmd-api-server): fix CVE-2023-36665 protobufjs try 2
Browse files Browse the repository at this point in the history
1. Upgraded fabric-network from 2.2.10 to 2.2.18 wherever it was still 2.2.10
2. Upgraded ipfs-http-client project-wide from 51.0.1 to 60.0.1
3. Upgraded @google-cloud/secret-manager from 3.9.0 to 5.0.1

This is the second try at fixing this issue. While it was in review
other commits already snuck back in more older versions of the vulnerable
dependency so before merging this I also add a resolution in the root
package.json file to ensure that the vulnerable version is not used
at all regardless of it being a dependency of a dependency.

[skip ci]

Fixes hyperledger#2682

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz authored and Yogesh01000100 committed Oct 18, 2023
1 parent 5ba385a commit 5f43c29
Show file tree
Hide file tree
Showing 6 changed files with 802 additions and 400 deletions.
2 changes: 1 addition & 1 deletion examples/cactus-example-cbdc-bridging-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"dotenv": "^16.0.1",
"fabric-network": "2.2.19",
"fs-extra": "10.1.0",
"ipfs-http-client": "51.0.1",
"ipfs-http-client": "60.0.1",
"knex": "2.5.1",
"nyc": "^13.1.0",
"openapi-types": "9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion extensions/cactus-plugin-object-store-ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@hyperledger/cactus-core": "2.0.0-alpha.2",
"@hyperledger/cactus-core-api": "2.0.0-alpha.2",
"axios": "0.21.4",
"ipfs-http-client": "51.0.1",
"ipfs-http-client": "60.0.1",
"run-time-error": "1.4.0",
"typescript-optional": "2.0.1",
"uuid": "8.3.2"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"lodash": ">=4.17.21",
"minimist": ">=1.2.6",
"node-forge": ">=1.3.0",
"protobufjs": ">=7.2.5",
"underscore": "1.13.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cactus-plugin-keychain-google-sm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js"
},
"dependencies": {
"@google-cloud/secret-manager": "3.9.0",
"@google-cloud/secret-manager": "5.0.1",
"@hyperledger/cactus-common": "2.0.0-alpha.2",
"@hyperledger/cactus-core": "2.0.0-alpha.2",
"@hyperledger/cactus-core-api": "2.0.0-alpha.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/cactus-plugin-odap-hermes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@types/tape": "4.13.4",
"crypto-js": "4.0.0",
"fabric-network": "2.2.19",
"ipfs-http-client": "51.0.1",
"ipfs-http-client": "60.0.1",
"typescript": "4.9.5"
},
"engines": {
Expand Down

0 comments on commit 5f43c29

Please sign in to comment.