Skip to content

build: bump mapstructure/v2 to v2.4.0 to fix CVEs - #393

Merged
xxx0624 merged 1 commit into
aws:mainfrom
hoshank10:bump-x-net-mapstructure-cves
Jun 12, 2026
Merged

build: bump mapstructure/v2 to v2.4.0 to fix CVEs#393
xxx0624 merged 1 commit into
aws:mainfrom
hoshank10:bump-x-net-mapstructure-cves

Conversation

@hoshank10

@hoshank10 hoshank10 commented Jun 12, 2026

Copy link
Copy Markdown

What

Bump github.com/go-viper/mapstructure/v2 v2.2.1 → v2.4.0.

Why

govulncheck flags mapstructure via GO-2025-3787 (GHSA-fv92-fjc5-jj9h) and
GO-2025-3900 (GHSA-2464-8j7c-4cjm) — "sensitive information may leak in logs".
Source-mode (call-graph) analysis confirms GO-2025-3787 is reachable from
the logger config-decoding path. v2.4.0 clears both (3787 fixed in v2.3.0,
3900 in v2.4.0).

Verification

  • make build
  • make test-unit ✅ (the previously-failing job — now passes; go directive stays 1.23.0)
  • source-mode govulncheck: no reachable mapstructure vulnerability remains

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@hoshank10
hoshank10 requested a review from a team as a code owner June 12, 2026 19:18
@hoshank10 hoshank10 changed the title Bump golang.org/x/net to v0.55.0 and mapstructure/v2 to v2.4.0 to fix CVEs fix: Bump golang.org/x/net to v0.55.0 and mapstructure/v2 to v2.4.0 to fix CVEs Jun 12, 2026
Fixes GO-2025-3787 (GHSA-fv92-fjc5-jj9h) and GO-2025-3900
(GHSA-2464-8j7c-4cjm), where sensitive information may leak in logs.
GO-2025-3787 is reachable from the logger config-decoding path.

Verified: make build and make test-unit pass; go directive unchanged.
@hoshank10
hoshank10 force-pushed the bump-x-net-mapstructure-cves branch from 527c3b1 to af3b60e Compare June 12, 2026 20:35
@hoshank10 hoshank10 changed the title fix: Bump golang.org/x/net to v0.55.0 and mapstructure/v2 to v2.4.0 to fix CVEs build: bump mapstructure/v2 to v2.4.0 to fix CVEs Jun 12, 2026
@hoshank10 hoshank10 closed this Jun 12, 2026
@hoshank10 hoshank10 reopened this Jun 12, 2026
@xxx0624
xxx0624 merged commit d5a1c04 into aws:main Jun 12, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants