github.com/QuantumNous/new-api
Affected
- introduced
0, fixed0.12.0-alpha.1(semver)
Fixed versions
0.12.0-alpha.1
Fix
- Fixed version
0.12.0-alpha.1go get github.com/QuantumNous/[email protected]
Advisory
Also known as: CVE-2026-44342, GO-2026-5929
New API is vulnerable to CSRF through user email binding
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/bindGET /api/oauth/wechat/bindImpact
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
e099117c61391abdf888fb75e382a582e550bd0e.router/api-router.go and controller/user.go.Medium Basis: The source's own band: MODERATE
0, fixed 0.12.0-alpha.1 (semver)0.12.0-alpha.1
0.12.0-alpha.1go get github.com/QuantumNous/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0