CVE-2026-64859: New API User List API Leaks Root Vulnerability

CRITICAL
Advisory Identifier: GHSA-6x2c-phff-wx57
CVSS 9.1
CWE-200
Published
Advisory Summary

CVE-2026-64859 is a CRITICAL (CVSS 9.1) user list api leaks root vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting New API libraries in the Go ecosystem. The issue involves user list api leaks root user access token leading to privilege escalation. Remediation is available by upgrading affected packages to version 1.0.0-rc.7.

CVE-2026-64859 at a Glance

CVE Identifier CVE-2026-64859
GHSA Identifier GHSA-6x2c-phff-wx57
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product New API
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-64859

To remediate this vulnerability, upgrade all affected New API dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/QuantumNous/new-api fixed: 1.0.0-rc.7
Upgrade github.com/QuantumNous/new-api to 1.0.0-rc.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/QuantumNous/new-api

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-64859, inspect your project dependencies for New API:

inspect dependencies for github.com/QuantumNous/new-api

Analyze the terminal output to locate any version of New API in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-rc.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In New API, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Vulnerability Information - **Product**: new-api - **Affected versions**: versions before `v1.0.0-rc.7` that serialize `User.AccessToken` as `access_token`; the issue was confirmed in `v0.12.14` - **Patched version**: `v1.0.0-rc.7` - **Fixed commit**: `0936e2504655a5cbf7bc3c388f6d3e2bb24916d3` - **Type**: Information Disclosure / Privilege Escalation ## Description In affected versions of new-api, the admin user list and user lookup APIs can return the `access_token` field for users, including the root user. An authenticated admin user can call endpoints such as `GET /api/user/` to retrieve user records. Because access tokens function as bearer credentials for API authentication, leaking the root user's access token allows an admin user to authenticate as root and access root-only endpoints such as system configuration APIs. This bypasses the intended role boundary between admin users and the root user and can result in privilege escalation to full system control. ## Root Cause The `User.AccessToken` field was serialized as `json:"access_token"` in affected versions. User management APIs returned `User` model objects directly after omitting only the password field from database queries, so JSON serialization could include `access_token` in API responses. Affected code patterns include user list, user search, and user detail paths that use `Omit("password")` without preventing `access_token` from being serialized. ## Impact - An authenticated admin user may obtain the root user's access token. - The attacker may impersonate the root user and access root-only APIs. - The attacker may modify system settings, payment settings, OAuth/SMTP-related configuration, and other sensitive platform options. - Access tokens for other users may also be exposed, enabling user impersonation. ## Remediation Upgrade to `v1.0.0-rc.7` or later. The fix changes `User.AccessToken` to use `json:"-"`, preventing the field from being serialized in API responses. Operators should also rotate any root or user access tokens that may have been exposed before upgrading, especially if untrusted admin users had access to user management APIs.

CVE-2026-64859 Affected New API Versions

1 component(s)
Fixed Versions:
1.0.0-rc.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/QuantumNous/new-api
Go
< 1.0.0-rc.7
1.0.0-rc.7

References

Frequently Asked Questions

What is CVE-2026-64859?
CVE-2026-64859 is a security vulnerability in New API involving User List API Leaks Root User Access Token Leading to Privilege Escalation under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which New API versions are affected?
Affected versions include releases prior to 1.0.0-rc.7 across affected packages: github.com/QuantumNous/new-api.
What version fixes CVE-2026-64859?
Upgrading to 1.0.0-rc.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/QuantumNous/new-api affected?
Yes, github.com/QuantumNous/new-api is affected in releases prior to 1.0.0-rc.7. Upgrade your dependency to 1.0.0-rc.7 or later.
What is the CVSS score of CVE-2026-64859?
CVE-2026-64859 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-64859?
CVE-2026-64859 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2026-64859?
Run the dependency tree command: 'inspect dependencies for github.com/QuantumNous/new-api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6x2c-phff-wx57",
  "modified" : "2026-08-17T16:35:50Z",
  "published" : "2026-08-17T16:35:50Z",
  "aliases" : [ "CVE-2026-64859" ],
  "summary" : "New API: User List API Leaks Root User Access Token Leading to Privilege Escalation",
  "details" : "## Vulnerability Information\n\n- **Product**: new-api\n- **Affected versions**: versions before `v1.0.0-rc.7` that serialize `User.AccessToken` as `access_token`; the issue was confirmed in `v0.12.14`\n- **Patched version**: `v1.0.0-rc.7`\n- **Fixed commit**: `0936e2504655a5cbf7bc3c388f6d3e2bb24916d3`\n- **Type**: Information Disclosure / Privilege Escalation\n\n## Description\n\nIn affected versions of new-api, the admin user list and user lookup APIs can return the `access_token` field for users, including the root user. An authenticated admin user can call endpoints such as `GET /api/user/` to retrieve user records. Because access tokens function as bearer credentials for API authentication, leaking the root user's access token allows an admin user to authenticate as root and access root-only endpoints such as system configuration APIs.\n\nThis bypasses the intended role boundary between admin users and the root user and can result in privilege escalation to full system control.\n\n## Root Cause\n\nThe `User.AccessToken` field was serialized as `json:\"access_token\"` in affected versions. User management APIs returned `User` model objects directly after omitting only the password field from database queries, so JSON serialization could include `access_token` in API responses.\n\nAffected code patterns include user list, user search, and user detail paths that use `Omit(\"password\")` without preventing `access_token` from being serialized.\n\n## Impact\n\n- An authenticated admin user may obtain the root user's access token.\n- The attacker may impersonate the root user and access root-only APIs.\n- The attacker may modify system settings, payment settings, OAuth/SMTP-related configuration, and other sensitive platform options.\n- Access tokens for other users may also be exposed, enabling user impersonation.\n\n## Remediation\n\nUpgrade to `v1.0.0-rc.7` or later. The fix changes `User.AccessToken` to use `json:\"-\"`, preventing the field from being serialized in API responses.\n\nOperators should also rotate any root or user access tokens that may have been exposed before upgrading, especially if untrusted admin users had access to user management APIs.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/QuantumNous/new-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0-rc.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/QuantumNous/new-api/security/advisories/GHSA-6x2c-phff-wx57"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/QuantumNous/new-api/pull/4929"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/QuantumNous/new-api/commit/0936e2504655a5cbf7bc3c388f6d3e2bb24916d3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/QuantumNous/new-api"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-17T16:35:50Z",
    "nvd_published_at" : null
  }
}