Advisory record · GHSA-fv92-fjc5-jj9h

mapstructure May Leak Sensitive Information in Logs When Processing Malformed Data

CVSS 5.3 Medium

Published by the GitHub Advisory Database at 27 Jun 2025, 16:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/go-viper/mapstructure/v2Go<2.3.02.3.0
Identifiers
GHSA-fv92-fjc5-jj9h · GO-2025-3787
Weakness (CWE)
CWE-532
Published
27 Jun 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of github.com/go-viper/mapstructure/v2 before 2.3.0 may leak sensitive information in error messages when used to process sensitive fields, such as when a value of the wrong type is supplied. The source describes this as an information disclosure issue, reported through OpenBao error logs, and gives few details on exactly who can trigger it. Upgrade to version 2.3.0 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 14:14 UTC First seen by agentprime
  2. 31 Oct 2026, 14:14 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.