Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-viper/mapstructure/v2
  4. ›
  5. GHSA-fv92-fjc5-jj9h

GHSA-fv92-fjc5-jj9h: mapstructure May Leak Sensitive Information in Logs When Processing Malformed Data

June 27, 2025

Use of this library in a security-critical context may result in leaking sensitive information, if used to process sensitive fields.

References

  • github.com/advisories/GHSA-fv92-fjc5-jj9h
  • github.com/go-viper/mapstructure
  • github.com/go-viper/mapstructure/security/advisories/GHSA-fv92-fjc5-jj9h

Code Behaviors & Features

Detect and mitigate GHSA-fv92-fjc5-jj9h with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.0

Fixed versions

  • 2.3.0

Solution

Upgrade to version 2.3.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Source file

go/github.com/go-viper/mapstructure/v2/GHSA-fv92-fjc5-jj9h.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:07 +0000.