CVE-2025-70058: yapi disables TLS/SSL certificate validation via rejectUnauthorized: false in Axios HTTPS agent
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
Published Feb 23, 2026 · Updated Feb 25, 2026
Affected packages
yapi-vendor
- Ecosystem
- npm
- Affected
- <= 1.12.0
- Fixed in
- No patched version yet
- Check
npm ls yapi-vendor
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-70058
- https://gist.github.com/zcxlighthouse/11c53803faf23f607c2787c166e811d4
- https://github.com/YMFE
- https://github.com/YMFE/yapi
- https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/common/postmanLib.js#L110
- https://github.com/advisories/GHSA-663h-2vr3-ghrj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
