Vulnerabilities in pkg:npm/yapi-vendor
PACKAGECVE-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.
pkg:npm/yapi-vendor
Vulnerability advisories affecting package pkg:npm/yapi-vendor. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-663h-2vr3-ghrj | CVE-2025-70058 | HIGH | yapi disables TLS/SSL certificate validation via rejectUnauthorized: false in Axios HTTPS agent |
| GHSA-4jqw-vfmj-9rmh | CVE-2021-36686 | MODERATE | Cross-site Scripting in yapi-vendor |
| GHSA-5xgh-643p-cp2g | CVE-2018-17574 | MODERATE | Cross-site Scripting in yapi-vendor |
| GHSA-2h3h-vw8r-82rp | CVE-2021-27884 | MODERATE | Weak JSON Web Token in yapi-vendor |
CVE-2025-70058 at a Glance
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).
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.
npm install yapi-vendor@Latest secure release
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
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?
Which Yapi vendor versions are affected?
What version fixes CVE-2025-70058?
Is yapi-vendor affected?
What is the CVSS score of CVE-2025-70058?
What CWE is associated with CVE-2025-70058?
How can I check npm dependencies for CVE-2025-70058?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}