CVE-2025-11065
January 26, 2026
A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.
Affected Packages
https://github.com/go-viper/mapstructure.git (GITHUB):
Affected version(s) >=v1.0.0 <v2.4.0Fix Suggestion:
Update to version v2.4.0github.com/go-viper/mapstructure (GO):
Affected version(s) >=v1.0.0 <v2.4.0Fix Suggestion:
Update to version v2.4.0github.com/go-viper/mapstructure/v2 (GO):
Affected version(s) >=v2.0.0-alpha.1 <v2.4.0Fix Suggestion:
Update to version v2.4.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.01