CVE-2025-11065
Medium
Description
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.
SeverityMedium
CVSS5.3
Exploit probability—
ProductGithub.com/go-viper/mapstructure/v2
PublishedJan 26, 2026
First seenJan 26, 2026
Weakness typeCWE-209CWE-209
How to fix
Update
- github.com/go-viper/mapstructure/v22.4.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/go-viper/mapstructure/v2Go | v < 2.4.0 | 2.4.0 |
| github.com/go-viper/mapstructureGo | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.