fix(deps): Update module github.com/go-viper/mapstructure/v2 to v2.4.0 [SECURITY]#21267
Merged
kodiakhq[bot] merged 2 commits intomainfrom Aug 25, 2025
Conversation
Contributor
Author
|
/gen sha=44d9f4dccf330d12b56ebd901b9ae10a5bcf4e91 dir=plugins/destination/duckdb |
Contributor
Author
|
/gen sha=44d9f4dccf330d12b56ebd901b9ae10a5bcf4e91 dir=cli |
erezrokah
approved these changes
Aug 25, 2025
…-v2-vulnerability
This was referenced Aug 23, 2025
kodiakhq bot
pushed a commit
that referenced
this pull request
Aug 27, 2025
🤖 I have created a release *beep* *boop* --- ## [6.1.3](plugins-destination-duckdb-v6.1.2...plugins-destination-duckdb-v6.1.3) (2025-08-26) ### Bug Fixes * **deps:** Update module github.com/go-viper/mapstructure/v2 to v2.4.0 [SECURITY] ([#21267](#21267)) ([630e091](630e091)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot
pushed a commit
that referenced
this pull request
Aug 27, 2025
🤖 I have created a release *beep* *boop* --- ## [6.27.1](cli-v6.27.0...cli-v6.27.1) (2025-08-27) ### Bug Fixes * **deps:** Update alpine Docker tag to v3.22.1 ([#21213](#21213)) ([9a52de4](9a52de4)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.89.0 ([#21238](#21238)) ([deb4cee](deb4cee)) * **deps:** Update module github.com/go-viper/mapstructure/v2 to v2.4.0 [SECURITY] ([#21267](#21267)) ([630e091](630e091)) * **deps:** Update module google.golang.org/grpc to v1.74.2 ([#21224](#21224)) ([3cdd36f](3cdd36f)) * **deps:** Update module google.golang.org/protobuf to v1.36.7 ([#21231](#21231)) ([6b980af](6b980af)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.3.0->v2.4.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
GHSA-2464-8j7c-4cjm
Summary
Use of this library in a security-critical context may result in leaking sensitive information, if used to process sensitive fields.
Details
OpenBao (and presumably HashiCorp Vault) have surfaced error messages from
mapstructureas follows:https://github.com/openbao/openbao/blob/98c3a59c040efca724353ca46ca79bd5cdbab920/sdk/framework/field_data.go#L43-L50
where this calls
mapstructure.WeakDecode(...): https://github.com/openbao/openbao/blob/98c3a59c040efca724353ca46ca79bd5cdbab920/sdk/framework/field_data.go#L181-L193Notably,
WeakDecode(...)eventually calls one of the decode helpers, which surfaces the original value viastrconvhelpers:https://github.com/go-viper/mapstructure/blob/8c61ec1924fcfa522f9fc6b4618c672db61d1a38/mapstructure.go#L720-L727
https://github.com/go-viper/mapstructure/blob/8c61ec1924fcfa522f9fc6b4618c672db61d1a38/mapstructure.go#L791-L798
https://github.com/go-viper/mapstructure/blob/8c61ec1924fcfa522f9fc6b4618c672db61d1a38/decode_hooks.go#L180
& more. These are different code paths than are fixed in the previous iteration at GHSA-fv92-fjc5-jj9h.
PoC
To reproduce with OpenBao:
and in a new tab:
Impact
This is an information disclosure bug with little mitigation. See https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717 for a previous version. That version was fixed, but this is in the second part of that error message (starting at
'' expected a map, got 'string'-- when the field type isstringand amapis provided, we see the above information leak -- the previous example had amaptype field with astringvalue provided).This was rated 4.5 Medium by HashiCorp in the past iteration.
Release Notes
go-viper/mapstructure (github.com/go-viper/mapstructure/v2)
v2.4.0Compare Source
What's Changed
New Contributors
Full Changelog: go-viper/mapstructure@v2.3.0...v2.4.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.