CVE-2025-70058: Yapi vendor False Vulnerability

HIGH
Advisory Identifier: GHSA-663h-2vr3-ghrj
CVSS 7.4
CWE-295
Published
Advisory Summary

CVE-2025-70058 is a HIGH (CVSS 7.4) false vulnerability (CWE-295: Improper Certificate Validation) affecting Yapi vendor libraries in the npm ecosystem. The issue involves false in axios https agent. Remediation is available in the latest vendor maintenance releases.

CVE-2025-70058 at a Glance

CVE Identifier CVE-2025-70058
GHSA Identifier GHSA-663h-2vr3-ghrj
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Yapi vendor
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-70058

To remediate this vulnerability, upgrade all affected Yapi vendor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

yapi-vendor fixed: Latest secure release
npm install yapi-vendor@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls yapi-vendor

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-70058, inspect your project dependencies using npm:

npm ls yapi-vendor

Analyze the terminal output to locate any version of Yapi vendor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls yapi-vendor command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Yapi vendor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue pertaining to CWE-295: Improper Certificate Validation was discovered in YMFE yapi v1.12.0. The application disables TLS/SSL certificate validation by setting 'rejectUnauthorized': false in the HTTPS agent configuration for Axios requests

CVE-2025-70058 Affected Yapi vendor Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
yapi-vendor
npm
≤ 1.12.0

References

Frequently Asked Questions

What is CVE-2025-70058?
CVE-2025-70058 is a security vulnerability in Yapi vendor involving false in Axios HTTPS agent under CWE-295: Improper Certificate Validation.
Which Yapi vendor versions are affected?
Affected versions include releases prior to current release patches across affected packages: yapi-vendor.
What version fixes CVE-2025-70058?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is yapi-vendor affected?
Yes, yapi-vendor is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-70058?
CVE-2025-70058 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-70058?
CVE-2025-70058 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check npm dependencies for CVE-2025-70058?
Run the dependency tree command: 'npm ls yapi-vendor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-663h-2vr3-ghrj",
  "modified" : "2026-02-25T22:46:40Z",
  "published" : "2026-02-23T18:32:02Z",
  "aliases" : [ "CVE-2025-70058" ],
  "summary" : "yapi disables TLS/SSL certificate validation via rejectUnauthorized: false in Axios HTTPS agent",
  "details" : "An issue pertaining to CWE-295: Improper Certificate Validation was discovered in YMFE yapi v1.12.0. The application disables TLS/SSL certificate validation by setting 'rejectUnauthorized': false in the HTTPS agent configuration for Axios requests",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "yapi-vendor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-70058"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/zcxlighthouse/11c53803faf23f607c2787c166e811d4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/YMFE"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/YMFE/yapi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/common/postmanLib.js#L110"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-25T22:46:40Z",
    "nvd_published_at" : "2026-02-23T16:29:36Z"
  }
}