Cross-site Request Forgery (CSRF) Affecting github.com/quantumnous/new-api/controller package, versions <0.12.0-alpha.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMQUANTUMNOUSNEWAPICONTROLLER-17878861
  • published7 Jul 2026
  • disclosed7 Jul 2026
  • creditUnknown

Introduced: 7 Jul 2026

CVE-2026-44342  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade github.com/QuantumNous/new-api/controller to version 0.12.0-alpha.1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the GET /api/oauth/email/bind and GET /api/oauth/wechat/bind endpoints. An attacker can alter account binding state by tricking a logged-in user into visiting a crafted link, potentially allowing the attacker to bind an email address or OAuth identity they control and attempt account recovery flows. This is only exploitable if session cookies are not configured with strict SameSite behavior, allowing them to be sent on cross-site navigations.

Workaround

This vulnerability can be mitigated by configuring session cookies with strict SameSite behavior and blocking GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy.

CVSS Base Scores

version 4.0
version 3.1