yapi disables TLS/SSL certificate validation via rejectUnauthorized: false in Axios HTTPS agent
Date: 2026-02
Affected: npm/yapi-vendor
Attack vector: other
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2025-70058
CWE: CWE-295
CVSS: 7.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N)

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


Mitigations:

Architectural layers (MAESTRO):