Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-11065

CVE-2025-11065: Viper Mapstructure Information Disclosure

CVE-2025-11065 is an information disclosure vulnerability in github.com/go-viper/mapstructure/v2 that leaks sensitive input values through error messages. This post covers technical details, affected versions, and mitigation.

Published: January 30, 2026

CVE-2025-11065 Overview

A vulnerability has been identified in github.com/go-viper/mapstructure/v2, specifically within the field processing component when using mapstructure.WeakDecode. This information disclosure vulnerability allows sensitive input values to be exposed through detailed error messages when malformed user-supplied data is processed in security-critical contexts.

Critical Impact

Sensitive data such as user credentials, API keys, or configuration values processed through mapstructure could be leaked via verbose error messages, potentially exposing confidential information to attackers.

Affected Products

  • github.com/go-viper/mapstructure/v2 (versions prior to the security patch)

Discovery Timeline

  • 2026-01-26 - CVE CVE-2025-11065 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2025-11065

Vulnerability Analysis

This vulnerability falls under CWE-209 (Generation of Error Message Containing Sensitive Information). When the mapstructure.WeakDecode function processes malformed input data, the resulting error messages include the raw input values that caused the parsing failure. In scenarios where sensitive data such as passwords, tokens, or personally identifiable information (PII) is being processed, these verbose error messages can inadvertently expose the sensitive values to unauthorized parties through application logs, API responses, or debugging output.

The vulnerability requires network access and user interaction to exploit, making it a targeted attack vector rather than an opportunistic one. An attacker would need to craft specific malformed input that triggers parsing errors while also having access to observe the resulting error messages, either through application logs, error responses, or other output channels.

Root Cause

The root cause lies in the error handling mechanism within mapstructure's type conversion functions. When numeric conversion operations fail via strconv functions, the original error message—which includes the problematic input value—was being directly propagated to the caller without sanitization. This design choice, while useful for debugging, creates a security risk when the library processes untrusted or sensitive data.

Attack Vector

An attacker can exploit this vulnerability by submitting malformed data to an application that uses mapstructure.WeakDecode for configuration parsing or data binding. If the application logs errors or returns them in API responses, the attacker can extract sensitive information that was included in the original input payload. The attack requires the attacker to observe error output, which may be achieved through:

  1. Direct access to application logs
  2. Error messages returned in HTTP responses
  3. Debug endpoints that expose internal errors
  4. Monitoring systems that capture application output

The following patch demonstrates how the vulnerability was addressed by wrapping strconv numeric errors to prevent value leakage:

go
			return newDecodeError(name, &ParseError{
				Expected: val,
				Value:    data,
-				Err:      err,
+				Err:      wrapStrconvNumError(err),
			})
		}
	case dataType.PkgPath() == "encoding/json" && dataType.Name() == "Number":

Source: GitHub Commit Reference

The fix introduces a wrapper function wrapStrconvNumError that sanitizes the error message to prevent the original input value from being exposed.

Detection Methods for CVE-2025-11065

Indicators of Compromise

  • Application logs containing detailed error messages with user-supplied input values embedded in mapstructure parsing errors
  • Unusual patterns of malformed input submissions that consistently trigger parsing errors
  • Increased error rates in components utilizing mapstructure.WeakDecode for data processing

Detection Strategies

  • Review application logs for error messages containing patterns like ParseError with sensitive data fragments
  • Monitor for abnormal error generation rates in configuration parsing or data binding modules
  • Implement log analysis rules to detect potential information leakage through verbose error output
  • Audit code paths that use mapstructure.WeakDecode with untrusted input

Monitoring Recommendations

  • Configure log aggregation systems to flag and alert on error messages containing potentially sensitive data patterns
  • Implement application-level monitoring to track error rates in mapstructure-dependent components
  • Review and sanitize all error messages before they reach logs or user-facing output
  • Enable verbose logging only in development environments, not production

How to Mitigate CVE-2025-11065

Immediate Actions Required

  • Update github.com/go-viper/mapstructure/v2 to the patched version containing commit 742921c9ba2854d27baa64272487fc5075d2c39c
  • Review application code to identify all usages of mapstructure.WeakDecode with sensitive or untrusted data
  • Implement error sanitization at the application layer as an additional defense-in-depth measure
  • Audit logs for any historical exposure of sensitive data through error messages

Patch Information

The vulnerability has been addressed in a security patch available through the GitHub Commit Reference. Additional details are available in the GitHub Security Advisory and the Red Hat CVE Advisory.

Workarounds

  • Implement custom error handling wrappers around mapstructure.WeakDecode calls to sanitize error messages before logging or returning them
  • Configure application error handling to use generic error messages for user-facing output while retaining detailed errors only for secure internal logging
  • Restrict access to application logs and error output to authorized personnel only
  • Consider using mapstructure.Decode with strict validation where possible to reduce error surface area
bash
# Update go-viper/mapstructure to the latest patched version
go get -u github.com/go-viper/mapstructure/v2@latest

# Verify the installed version includes the security fix
go list -m github.com/go-viper/mapstructure/v2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGo Viper

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-209
  • Technical References
  • Red Hat CVE Advisory

  • Red Hat Bug Report

  • GitHub Commit Reference

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English