Insertion of Sensitive Information into Log File Affecting github.com/go-viper/mapstructure/v2 package, versions <2.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOVIPERMAPSTRUCTUREV2-10558294
  • published27 Jun 2025
  • disclosed26 Jun 2025
  • creditAlexander Scheel

Introduced: 26 Jun 2025

NewCVE-2025-52893  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade github.com/go-viper/mapstructure/v2 to version 2.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File when processing malformed data. An attacker can access sensitive information by submitting specially crafted malformed input that causes error messages to include confidential data in server or audit logs.

CVSS Base Scores

version 4.0
version 3.1