Github.com/go-viper/mapstructure/v2: go-viper's mapstructure may leak sensitive information in logs in github.com/go-viper/mapstructure
github.com/go-viper/mapstructure/v2 · Red Hat OpenShift Pipelines · Red Hat Advanced Cluster Management for Kubernetes 2 · Red Hat Advanced Cluster Security 4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-viper/mapstructure/v2 Go |
|
|
| github.com/go-viper/mapstructure Go |
| No fix yet |
Original description
A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.