The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-70058

CVE-2025-70058: Ymfe Yapi Certificate Validation Flaw

CVE-2025-70058 is an improper certificate validation vulnerability in Ymfe Yapi v1.12.0 that disables TLS/SSL verification. This flaw exposes communications to interception attacks. Learn about affected versions and fixes.

Published: February 27, 2026

CVE-2025-70058 Overview

An Improper Certificate Validation vulnerability (CWE-295) has been identified in YMFE YApi version 1.12.0. The application disables TLS/SSL certificate validation by setting rejectUnauthorized: false in the HTTPS agent configuration for Axios requests. This insecure configuration allows the application to accept any SSL/TLS certificate, including self-signed, expired, or maliciously crafted certificates, potentially enabling man-in-the-middle (MITM) attacks.

Critical Impact

Attackers on the network path can intercept, read, and modify sensitive API data transmitted between YApi and external services, compromising data confidentiality and integrity.

Affected Products

  • YMFE YApi version 1.12.0

Discovery Timeline

  • 2026-02-23 - CVE-2025-70058 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2025-70058

Vulnerability Analysis

This vulnerability stems from a fundamental misconfiguration in how YMFE YApi handles HTTPS connections. YApi is an API management platform that facilitates API documentation, testing, and mock services. When making outbound HTTPS requests via Axios, the application explicitly disables certificate validation by configuring the HTTPS agent with rejectUnauthorized: false.

By disabling certificate validation, the application will accept any certificate presented during the TLS handshake, regardless of whether it is signed by a trusted Certificate Authority, has expired, or does not match the expected hostname. This creates a significant security gap that attackers can exploit to perform man-in-the-middle attacks.

The network-based attack vector means that an attacker positioned between the YApi instance and its target servers (such as through ARP spoofing, DNS hijacking, or compromised network infrastructure) can intercept all HTTPS traffic. Despite the connection appearing secure to users, the attacker can decrypt, inspect, and modify data in transit.

Root Cause

The root cause is the explicit disabling of TLS/SSL certificate validation in the Axios HTTP client configuration. The rejectUnauthorized: false setting in the HTTPS agent bypasses all certificate chain validation, hostname verification, and expiration checks. This is commonly done as a shortcut during development to handle self-signed certificates but should never be deployed in production environments.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker must be positioned to intercept network traffic between the YApi server and external API endpoints. Once in position, the attacker can:

  1. Present a fraudulent certificate to the YApi instance during the TLS handshake
  2. Establish a separate legitimate connection to the intended destination server
  3. Relay and potentially modify traffic between both endpoints
  4. Capture sensitive data including API keys, authentication tokens, and business-critical information

The attack mechanism exploits the disabled certificate validation in YApi's Axios configuration. When the application makes HTTPS requests to external services, it fails to verify that the presented certificate is legitimate. Technical details regarding the vulnerable code configuration can be found in the GitHub Gist documentation.

Detection Methods for CVE-2025-70058

Indicators of Compromise

  • Unexpected certificate warnings or errors in connected client applications while YApi continues to function normally
  • Network traffic analysis revealing TLS connections with invalid or self-signed certificates being accepted
  • Discrepancies between API responses received by YApi and actual responses from legitimate API endpoints
  • Presence of unknown intermediate proxies in network traffic logs

Detection Strategies

  • Audit the YApi configuration and source code for instances of rejectUnauthorized: false in HTTPS agent settings
  • Monitor network traffic for TLS connections that accept certificates not issued by trusted Certificate Authorities
  • Implement network intrusion detection rules to identify potential MITM attack patterns
  • Review Axios and HTTPS agent configurations across all Node.js applications in the environment

Monitoring Recommendations

  • Deploy network monitoring to detect certificate anomalies in outbound HTTPS connections from YApi instances
  • Implement certificate pinning validation at the network perimeter where possible
  • Enable verbose logging for all outbound API requests from YApi to identify suspicious activity
  • Use SentinelOne Singularity Platform to monitor for unauthorized network interception tools and MITM attack indicators

How to Mitigate CVE-2025-70058

Immediate Actions Required

  • Remove or set rejectUnauthorized: true in all HTTPS agent configurations within YApi
  • Audit all Node.js applications for similar insecure TLS configurations
  • Implement proper certificate management for any self-signed certificates required in development environments
  • Consider network segmentation to limit exposure of YApi instances to untrusted networks

Patch Information

No official vendor patch has been identified at the time of publication. Organizations should review the YMFE YApi GitHub repository for updates and security advisories. Manual remediation of the configuration is recommended until an official fix is released.

Workarounds

  • Modify the Axios HTTPS agent configuration to enable proper certificate validation by setting rejectUnauthorized: true
  • Use environment-specific configurations to ensure development shortcuts are not deployed to production
  • Implement certificate pinning for critical external API connections
  • Deploy a reverse proxy with proper TLS termination and certificate validation in front of YApi
bash
# Configuration example - Verify and update Node.js HTTPS agent settings
# Locate Axios configuration files and ensure proper certificate validation
grep -r "rejectUnauthorized" /path/to/yapi/
# Update any instances of rejectUnauthorized: false to rejectUnauthorized: true
# Or remove the setting entirely to use secure defaults

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechYmfe Yapi

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-295
  • Technical References
  • GitHub Gist Code Snippet

  • GitHub User Repository

  • GitHub YApi Project
  • 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