Vulnerability Database · Go · Package report
github.com/go-viper/mapstructure/v2: vulnerability history, versions and safety
github.com/go-viper/mapstructure/v2 is a package in the Go ecosystem. Vulert records 3 vulnerabilities for it across 43 releases, from Jun 2025 to Jan 2026. Each vulnerability names the versions it affects, the fixed version to move to, and a workaround where no fix has been published.
Every vulnerability has a patched version to move to.
No published version shipped hostile code.
Vulert verdict on github.com/go-viper/mapstructure/v2 v2.5.0 i
Updated on 23 Oct 2026
Action needed: v2.5.0 has 3 known vulnerabilities, but every one of them has a fix. Upgrade to the version listed below and you are clear.
- Security Minor issues
- Maintenance Sustainable
- Popularity Niche
- Community Quiet
What to do: Upgrade to the version that resolves each vulnerability below. Fix it, then keep watch: this version is affected today, and the next one may be too — Vulert alerts you when a new vulnerability lands. Monitor it with Vulert →
- Current release v2.5.0 — affected i
- Vulnerabilities on record 3 over 1 year · 1 in the last year i
- Latest disclosure 26 Jan 2026 i
- Highest CVSS 5.3 i
- With no published fix 0 i
- Stars 485 i
- OpenSSF scorecard 4/10 i
- Last release 9 months ago i
- Licence MIT i
Version list, release dates, licence and dependants published by the Go module proxy, refreshed 22 Oct 2026. Licence information is not legal advice.
Concerned about your application's security?
Vulert continues monitoring your dependencies and alerts you when new vulnerabilities are disclosed. No installation and no source-code access required.
01 Versions
Which versions are affected
Every version Vulert tracks for github.com/go-viper/mapstructure/v2, newest first, with the vulnerabilities recorded against each one. A version showing none has no vulnerability in the Vulert database — open it for the full picture on that release.
- v2.5.1-0.20260127154336-52aa5c6dc1d2 27 Jan 2026
- v2.5.1-0.20260127154234-41eafd1297d5 27 Jan 2026
- v2.5.1-0.20260112174959-cd52f897d661 12 Jan 2026
- v2.5.0 12 Jan 2026
- v2.4.1-0.20251217034126-6ffa40ae9136 17 Dec 2025
- v2.4.1-0.20251213031937-cf810d943440 13 Dec 2025
- v2.4.1-0.20251209172413-af2cf2a8a32d 09 Dec 2025
- v2.4.1-0.20251013204233-b54ec8245e54 13 Oct 2025
- v2.4.1-0.20250820154410-f9d9e58287f2 20 Aug 2025
- v2.4.1-0.20250807142409-bbfe61d1af95 07 Aug 2025
- v2.4.0 15 Jul 2025
- v2.3.1-0.20250714172930-9a861bc115f2 14 Jul 2025
- v2.3.1-0.20250712081825-de5deae90d84 12 Jul 2025
- v2.3.1-0.20250712055023-742921c9ba28 12 Jul 2025
- v2.3.1-0.20250626042247-5d1b937024c6 26 Jun 2025
- v2.2.2-0.20250616141124-8c61ec1924fc 16 Jun 2025
- v2.3.0 16 Jun 2025
- v2.2.2-0.20250616133344-ed3f92181528 16 Jun 2025
- v2.2.2-0.20250614130746-d0d489ccca2f 14 Jun 2025
- v2.2.2-0.20250606113443-1a66224d5e54 06 Jun 2025
- v2.2.2-0.20250510134510-396544120c0d 10 May 2025
- v2.2.2-0.20250419225903-232c7c6d592e 19 Apr 2025
- v2.2.2-0.20250417123055-ef196921ef24 17 Apr 2025
- v2.2.2-0.20250326061814-8cfa81661a59 26 Mar 2025
- v2.2.2-0.20250315140719-1072f346635a 15 Mar 2025
- v2.2.2-0.20250218145611-71e356cd8b5f 18 Feb 2025
- v2.2.2-0.20250109111121-7aa50a4e78df 09 Jan 2025
- v2.2.2-0.20241118124956-8101c0bc3534 18 Nov 2024
- v2.2.2-0.20241006081944-0b972d9949e7 06 Oct 2024
- v2.2.1 22 Sep 2024
- v2.2.0 20 Sep 2024
- v2.1.0 12 Aug 2024
- v2.0.1-0.20240811220347-2842dc86cbc8 11 Aug 2024
- v2.0.1-0.20240805221037-cafeac4f3556 05 Aug 2024
- v2.0.1-0.20240720132425-fd1be46fa74d 20 Jul 2024
- v2.0.1-0.20240602085007-0382e5b7e398 02 Jun 2024
- v2.0.0 02 Jun 2024
- v2.0.0-alpha.1.0.20240602075001-57a3d74ac329 02 Jun 2024
- v2.0.0-alpha.1.0.20240227123954-cb699d2a12c6 27 Feb 2024
- v2.0.0-alpha.1.0.20240226124921-b71c54176d2b 26 Feb 2024
- v2.0.0-alpha.1.0.20231222143158-7017a6863b51 22 Dec 2023
- v2.0.0-20231219210202-579c0fe9ed2f 19 Dec 2023
- v2.0.0-alpha.1 19 Dec 2023
All 43 versions Vulert tracks for this package. Severity counts are the vulnerabilities recorded against that exact release.
02 Disclosure history
How often vulnerabilities are recorded
Counted by the year Vulert recorded each vulnerability — the same date the table below shows as disclosed. 1 of the 3 were recorded in the last 12 months.
03 Vulnerabilities
Recorded vulnerabilities for github.com/go-viper/mapstructure/v2
| Vulnerability | Severity | Fixed version ↓ | Disclosed ↓ |
|---|---|---|---|
| Sensitive Information Leak in Mapstructure Package: GHSA-fv92-fjc5-jj9h | 5.3 medium | 2.3.0 | 27 Jun 2025 |
| Sensitive Information Leak in go-viper's mapstructure Package | 5.3 medium | 2.4.0 | 21 Aug 2025 |
| Sensitive Information Leak in go-viper's mapstructure - GHSA-86rf-68f4-2cph | 5.3 medium | 2.4.0 | 26 Jan 2026 |
Vulnerability wrong, a fix missing, or a package we should cover? Report it and we will fix the record. Report Vulnerability Provide Feedback
Updated: 23/Oct/2026 · Vulnerabilities in our DB: 524315