GHSA-6x2c-phff-wx57: Infoleak

Published Aug 17, 2026
·
Updated

Vulnerability Information

- Product: new-api - Affected versions: versions before v1.0.0-rc.7 that serialize User.AccessToken as accesstoken; 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 accesstoken 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:"accesstoken" 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 accesstoken in API responses.

Affected code patterns include user list, user search, and user detail paths that use Omit("password") without preventing accesstoken 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.

Affected Software

1 affected componentFixes available
go/github.com/QuantumNous/new-api<1.0.0-rc.7
1.0.0-rc.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/QuantumNous/new-api to a version that resolves this vulnerability.

    Fixed in 1.0.0-rc.7
  2. Upgrade

    Upgrade new-api to a version that resolves this vulnerability.

    Fixed in v1.0.0-rc.7
  3. Operational

    Rotate any root or user access tokens that may have been exposed before upgrading to v1.0.0-rc.7 (especially if untrusted admin users had access to user management APIs).

Event History

Aug 17, 2026
Advisory Published
via GitHub·04:35 PM
Data Sourced
via GitHub·04:35 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-6x2c-phff-wx57?

The severity of GHSA-6x2c-phff-wx57 is critical with a score of 9.1.

2

How do I fix GHSA-6x2c-phff-wx57?

To fix GHSA-6x2c-phff-wx57, upgrade to version v1.0.0-rc.7 or later.

3

What are the affected versions of GHSA-6x2c-phff-wx57?

The affected versions of GHSA-6x2c-phff-wx57 are all versions before v1.0.0-rc.7, including v0.12.14.

4

What product is associated with GHSA-6x2c-phff-wx57?

GHSA-6x2c-phff-wx57 is associated with the new-api product.

5

What type of vulnerability is GHSA-6x2c-phff-wx57 classified as?

GHSA-6x2c-phff-wx57 is classified as an information leak vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203