Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2025-70058
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-70058 is an Improper Certificate Validation vulnerability (CWE-295) affecting YMFE YApi v1.12.0, a self-deployable visual API management platform. The application disables TLS/SSL certificate validation by setting rejectUnauthorized: false in the HTTPS agent configuration for Axios requests, enabling man-in-the-middle (MitM) attacks. The vulnerability was disclosed on February 23, 2026, with the GitHub Gist report created on February 11, 2026. It carries a CVSS v3.1 base score of 7.4 (High) (Feedly, GitHub Gist).

Technical details

The root cause is classified as CWE-295 (Improper Certificate Validation). YApi v1.12.0 explicitly sets rejectUnauthorized: false in its HTTPS agent configuration when making outbound Axios requests, which instructs Node.js to skip TLS/SSL certificate chain and hostname verification entirely. This means any HTTPS connection initiated by the application — such as those used for API testing or data import — will proceed even if the server presents an invalid, self-signed, or attacker-controlled certificate. No authentication or special privileges are required to position an attacker for exploitation, though the attack complexity is rated High due to the requirement for a network-adjacent or on-path position (GitHub Gist, Feedly).

Impact

Successful exploitation allows a network-adjacent attacker to perform man-in-the-middle attacks against YApi's outbound HTTPS connections, enabling interception and modification of sensitive data in transit. The CVSS assessment indicates high confidentiality and integrity impact, meaning attackers can both read and tamper with API request/response data, credentials, or tokens exchanged between YApi and backend services. Availability is not directly impacted, but the exposure of API secrets or authentication tokens could facilitate further compromise of connected systems (Feedly, GitHub Gist).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-70058. The EPSS score is extremely low at 0.01%, reflecting minimal current exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an attacker to be in a network-on-path (MitM) position, which raises the practical attack complexity (Feedly).

Exploitation steps

  1. Reconnaissance: Identify a target YApi v1.12.0 instance that makes outbound HTTPS requests (e.g., for API testing, Swagger import, or webhook callbacks) on a network segment accessible to the attacker.
  2. Network Positioning: Position the attacker's system as a man-in-the-middle on the network path between the YApi server and its HTTPS targets, using techniques such as ARP spoofing, DNS poisoning, or rogue Wi-Fi access points.
  3. TLS Interception: Deploy a TLS-intercepting proxy (e.g., mitmproxy, Burp Suite) with a self-signed or attacker-controlled certificate. Because YApi sets rejectUnauthorized: false, the Axios HTTPS agent will accept any certificate without validation.
  4. Intercept/Modify Traffic: Capture plaintext API requests and responses passing through the proxy, including any authentication tokens, API keys, or sensitive payload data transmitted by YApi to backend services.
  5. Leverage Captured Data: Use intercepted credentials or tokens to authenticate to backend APIs or pivot to other systems (GitHub Gist, Feedly).

Indicators of compromise

  • Network: Unexpected TLS handshakes from the YApi server to IP addresses presenting self-signed or untrusted certificates; unusual outbound HTTPS connections to unfamiliar endpoints; duplicate or anomalous ARP entries on the network segment hosting YApi.
  • Logs: YApi application logs showing successful HTTPS connections to endpoints with certificate errors that would normally be rejected; Node.js process logs lacking TLS certificate validation warnings despite connecting to unrecognized hosts.
  • Process: Unexpected network traffic from the YApi Node.js process to intermediate hosts not in the expected API target list.

Mitigation and workarounds

The primary remediation is to remove or override the rejectUnauthorized: false setting in YApi's HTTPS Axios agent configuration, restoring default TLS certificate validation. Organizations should audit all Axios or Node.js HTTPS agent configurations within the codebase for similar misconfigurations. As no official patched release has been announced by YMFE (the upstream repository has not been actively maintained since 2021), administrators should apply the fix manually or consider migrating to an actively maintained API management alternative. Network-level controls such as restricting YApi's outbound connections to known, trusted endpoints can reduce exposure in the interim (GitHub YMFE, GitHub Gist).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54504HIGH8.8
  • JavaScript logoJavaScript
  • @andrea9293/mcp-documentation-server
NoYesSep 17, 2026
CVE-2026-77615HIGH8.7
  • JavaScript logoJavaScript
  • org.opencastproject:opencast-engage-paella-player-7
NoYesSep 17, 2026
CVE-2026-91127HIGH8.2
  • JavaScript logoJavaScript
  • @file-viewer/doc
NoYesSep 18, 2026
CVE-2026-77301HIGH7.5
  • JavaScript logoJavaScript
  • adm-zip
NoYesSep 18, 2026
CVE-2026-84992MEDIUM6.1
  • JavaScript logoJavaScript
  • md-editor-v3
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management