cometbft / cometbft-db

Database wrapper for CometBFT
Apache License 2.0
29 stars 49 forks source link

build(deps): Update `goleveldb` dependency to use our fork #191

Closed alesforz closed 3 weeks ago

alesforz commented 3 weeks ago

Context

In #3754 we are updating dependencies that are vulnerable to CVEs or that import other modules that are vulnerable to CVEs.

goleveldb imports google.golang.org/protobuf at version < v1.33.0 because of its dependency on outdated versions of github.com/onsi/ginkgo and github.com/onsi/gomega. protobuf < v1.33.0 is affected by CVE-2024-24786. Therefore, we want to update goleveldb dependencies so that it uses protobuf >= v.1.33.0.

Changes

This PR updates the goleveldb to use our fork importing protobuf's version to v1.34.1, which isn't vulnerable to CVE-2024-24786.


PR checklist

~- [ ] Tests written/updated~