GitHub Advisoryadvisory · Go

GHSA-9f46-w24h-69w4 new-api is vulnerable to SSRF Bypass

HIGH Published 2025-11-24 Modified 2025-12-17 Official page ↗
Aliases
CVE-2025-62155
Ecosystem
Go
Packages
github.com/QuantumNous/new-api
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Weaknesses
CWE-918
Reviewed
2025-11-24

Affected packages

• Go github.com/QuantumNous/new-api: < 0.9.6 → fixed in 0.9.6

Description

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. At the same time, the locally opened service 127.0.0.1:8083/uid.txt also received related requests. Impact Using 302 redirects to bypass previous SSRF security fixes

Related

Alias · CVE (1)

  • CVE-2025-62155 New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. vulnerability

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References