---
id: CVE-2026-64865
title: >-
  New API is a large language mode (LLM) gateway and artificial intelligence
  (AI) asset management system
summary: >-
  New API is a large language mode (LLM) gateway and artificial intelligence
  (AI) asset management system. Prior to 1.0.0-rc.16, repeated PUT
  /api/user/self requests that update language or sidebar_modules can race relay
  billing because co…
severity: medium
cwe:
  - CWE-362
vendor: QuantumNous
product: github.com/QuantumNous/new-api
affected:
  - github.com/QuantumNous/new-api <= 1.0.0-rc.15
patched:
  - github.com/QuantumNous/new-api 1.0.0-rc.16
published: '2026-08-17'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:09:01.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64865'
references:
  - url: >-
      https://github.com/QuantumNous/new-api/commit/dfc0d6324b40c1d6c2972e524409f933541bfb0f
    label: security-advisories@github.com
  - url: 'https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.16'
    label: security-advisories@github.com
  - url: >-
      https://github.com/QuantumNous/new-api/security/advisories/GHSA-j6gc-4893-qwmp
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-j6gc-4893-qwmp'
tags:
  - nvd
  - ghsa
  - go
epss: 0.00243
epssPercentile: 0.15824
aliases:
  - GHSA-j6gc-4893-qwmp
ecosystem: go
ingestedAt: '2026-08-17T16:57:25.404Z'
---

## Overview

New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to 1.0.0-rc.16, repeated PUT /api/user/self requests that update language or sidebar_modules can race relay billing because controller/user.go calls User.Update and updateUserCache performs a full RedisHSetObj write to user:.Quota, overwriting concurrent HINCRBY deductions and allowing an authenticated user to keep cached quota artificially high. This issue is fixed in version 1.0.0-rc.16.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-64865)

Affected packages:

- `github.com/QuantumNous/new-api <= 1.0.0-rc.15`

Patched in:

- `github.com/QuantumNous/new-api 1.0.0-rc.16`

Source: https://github.com/advisories/GHSA-j6gc-4893-qwmp
