vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
5.8k stars 395 forks source link

Indirect dependency from go-viper includes critical vulnerability CVE-2021-28235 #779

Open CosmicEgg opened 1 month ago

CosmicEgg commented 1 month ago

PLEASE READ

DO NOT submit tickets without first using the latest version of Golang, clearing your local golang package cache, and re-building mockery using the latest Golang version and the latest version of mockery. Please provide evidence this has been done in your issue. Failure to provide this evidence will likely result in your issue being closed.

Description

Mockery Version > v2.9.4 is using a module called github.com/spf13/viper < v1.16.0 which contains a module called ectd. The version 3.5.1 to 3.5.6 of etcd package includes critical vulnerability CVE-2021-28235. Upgrade to Viper package using etcd > v3.5.6.

Mockery Version

Version > v2.9.4

Golang Version

go 1.21

NOTE: Please upgrade to the latest golang version before submitting tickets!

Installation Method

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [etc]

Expected Behavior

Would be nice to upgrade viper to version > v.1.15.0

Actual Behavior

[what actually happened]