CVE-2025-70058: yapi disables TLS/SSL certificate validation via rejectUnauthorized: false in Axios HTTPS agent
(updated )
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
Code Behaviors & Features
Detect and mitigate CVE-2025-70058 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →