Skip to main content

new-api CVE-2026-44342

MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-07-07 https://github.com/QuantumNous/new-api GHSA-26v7-h57m-gh9m
5.3
CVSS 3.1 · Vendor: https://github.com/QuantumNous/new-api
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target's new-api session
  2. Delivery
    Host malicious page with forged GET bind URL
  3. Exploit
    Lure authenticated victim to page
  4. Install
    Browser sends session cookie with GET request
  5. C2
    Server binds attacker email to victim account
  6. Execute
    Attacker triggers password-reset to own email
  7. Impact
    Full account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim's browser sends session cookies on cross-site GET navigations - this is prevented by the default SameSite=Strict cookie configuration. The attack is therefore conditioned on: (1) the deployment having weakened or absent SameSite=Strict enforcement, either through explicit operator reconfiguration or through a proxy that rewrites Set-Cookie headers; (2) the victim being actively authenticated (valid session cookie) at the time they visit the attacker-controlled page; and (3) the attacker knowing or guessing a valid bind parameter (attacker-controlled email or OAuth token). What limits exploitation: SameSite=Strict is the default and blocks the attack in all mainstream browsers when unmodified; the attacker cannot recover anything from the response (C:N), only mutate binding state; the endpoint does not require any special privilege on the attacker's side beyond crafting the URL.

Impact

The CVSS 3.1 score of 5.3 (AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N) accurately reflects the exploitation difficulty. The AC:H metric is the decisive signal: the attack succeeds only when session cookies transit cross-site navigations, which the default SameSite=Strict configuration prevents in all mainstream modern browsers. This means the vast majority of default deployments are effectively not exploitable without an operator misconfiguration. The I:H rating is correct - successfully binding an attacker-controlled email enables follow-on account takeover via password-reset flows, which elevates the post-exploitation consequence even if initial exploitation is constrained. No EPSS score data was provided; no CISA KEV listing exists; no POC code has been identified. The overall real-world priority is low for organizations running default cookie configurations, but moderate for deployments that have altered SameSite behavior or route traffic through a proxy that strips or rewrites cookie attributes.

Exploit ScenarioDerived

An attacker registers a malicious email address with an authentication provider and crafts an HTML page containing an img tag or hidden link whose src resolves to GET /api/oauth/email/bind with the attacker's email as a parameter. When a logged-in new-api user visits this page in a browser where SameSite is not enforced as Strict, the browser silently sends the authenticated session cookie alongside the GET request, binding the attacker's email to the victim account. The attacker then triggers a password-reset flow to the now-bound email address, gaining full account access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 07, 2026

Cross-site request forgery in new-api's OAuth account binding endpoints allows an unauthenticated network attacker to silently rebind a logged-in user's email or WeChat identity to attacker-controlled credentials by luring the victim to a malicious page. Affected are all deployments running versions prior to v0.12.0-alpha.1 where the GET-based bind endpoints are reachable. No public exploit has been identified at time of analysis, and the default SameSite=Strict cookie configuration substantially limits real-world exploitability to environments that have weakened or overridden that default.

RemediationAI

The vendor-released patch is v0.12.0-alpha.1, which converts the email and WeChat binding routes from GET to POST and reads parameters from a JSON request body, eliminating the CSRF attack surface. Operators should upgrade to v0.12.0-alpha.1 or later; the fix commit is e099117c61391abdf888fb75e382a582e550bd0e (https://github.com/QuantumNous/new-api/commit/e099117c61391abdf888fb75e382a582e550bd0e). If an immediate upgrade is not feasible, two compensating controls can reduce risk: first, verify that session cookies retain their default SameSite=Strict attribute and that no reverse proxy or load balancer is stripping or downgrading the attribute - this single control prevents exploitation in all tested modern browsers; second, configure the reverse proxy to block or return 405 for GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind, which removes the attack surface at the network layer without application changes. Note that blocking those GET endpoints may break any existing client integrations that call them directly, so operators should audit API consumers before deploying the proxy rule.

Affected Packages

go github.com/quantumnous/new-api fix: 0.12.0-alpha.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability (CWE-352, Cross-Site Request Forgery) arises from a fundamental HTTP semantics violation: the endpoints GET /api/oauth/email/bind and GET /api/oauth/wechat/bind perform state-changing operations (account identity binding) using an idempotent HTTP method. Because browsers send cookies on same-origin GET navigations and some cross-site navigations, a forged link or image tag is sufficient to trigger the operation without a CSRF token. The affected package, pkg:go/github.com_quantumnous_new-api, is a Go-based API gateway; the vulnerable code paths are router/api-router.go and controller/user.go. CWE-352 root cause: the server relied solely on session cookie presence rather than requiring an unpredictable anti-CSRF token or a non-GET method for mutation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/QuantumNous/new-api) PRIMARY 5.3 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 5.3 MEDIUM

AC:H reflects the SameSite=Strict default that blocks most CSRF paths; I:H because successful binding enables account takeover via follow-on recovery flows.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/QuantumNous/new-api).

CVSS VectorVendor: https://github.com/QuantumNous/new-api

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

Summary

The email and WeChat account binding endpoints used GET requests for state-changing account operations. In deployments where session cookies could be sent on cross-site navigations, an attacker could trigger a logged-in user's browser to bind an attacker-controlled email address or OAuth identity.

Affected endpoints included:

  • GET /api/oauth/email/bind
  • GET /api/oauth/wechat/bind

Impact

A successful attack could change account binding state. For email binding, the attacker could bind an email address they control and then attempt follow-on account recovery flows. The default session cookie configuration uses SameSite=Strict, which mitigates common cross-site navigation attacks in modern browsers, so the issue is rated Medium.

Affected versions

Versions before v0.12.0-alpha.1 are affected.

Patches

This issue is fixed in v0.12.0-alpha.1. The fix changes email and WeChat binding routes from GET to POST and reads parameters from a JSON request body instead of query parameters. The same change set also normalizes password reset responses to avoid disclosing whether an email is registered.

Workarounds

If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy.

Resources

  • Fixed by commit e099117c61391abdf888fb75e382a582e550bd0e.
  • Relevant code paths: router/api-router.go and controller/user.go.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche Go API gateway, limited enterprise adoption
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)CVE.org

pkg:go/github.com_quantumnous_new-api

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy