---
id: blog/en/gpustack-cve-2026-102895-proxy-authentication
type: blog
language: en
title: "GPUStack CVE-2026-102895: can a proxy bypass authentication?"
description: How GPUStack before 2.2.0 trusted a local peer or a forwarded address, and which authentication boundaries to include in an API pentest scope.
summary: How GPUStack before 2.2.0 trusted a local peer or a forwarded address, and which authentication boundaries to include in an API pentest scope.
url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/
markdown_url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/index.md
author: rootzero
published: 2026-11-10T00:00:00.000Z
updated: null
tags:
  - GPUStack
  - API
  - Authentication
  - AI
  - Infrastructure
topics:
  - id: web-api
    name: Web and APIs
    url: https://rootzero.eu/en/research/topics/web-api/
  - id: ai-methods
    name: AI and methodology
    url: https://rootzero.eu/en/research/topics/ai-methods/
translations:
  en: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/
  fr: https://rootzero.eu/research/gpustack-cve-2026-102895-proxy-authentification/
reading_minutes: 4
content_origin: source-analysis
research_reference: null
research_status: null
vulnerabilities: []
references:
  - label: GPUStack advisory for CVE-2026-102895
    url: https://github.com/gpustack/gpustack/security/advisories/GHSA-gj9m-f8ph-pmhr
  - label: client_ip_getter from 2.1.1
    url: https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/api/auth.py#L48-L52
  - label: following code in get_current_user
    url: https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/api/auth.py#L71-L99
  - label: 2.1.1 configuration
    url: https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/config/config.py
  - label: auth.py from 2.2.0
    url: https://github.com/gpustack/gpustack/blob/c6e6b91d56ce12f3ce7293c56be8a363b7a41618/gpustack/api/auth.py#L64-L130
  - label: CISA KEV catalogue
    url: https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
  - label: API pentest scoping guide
    url: https://spectr-ai.eu/en/pentest-api#kit-cadrage
  - label: five JWT mistakes and their fixes
    url: https://rootzero.eu/en/research/jwt-five-mistakes/
sections:
  - title: Why can a remote request look like localhost?
    level: 2
    url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/#why-can-a-remote-request-look-like-localhost
  - title: Two separate paths in GPUStack 2.1.1
    level: 2
    url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/#two-separate-paths-in-gpustack-211
  - title: What changes in the fixed version?
    level: 2
    url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/#what-changes-in-the-fixed-version
  - title: Does patching close access already created?
    level: 2
    url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/#does-patching-close-access-already-created
  - title: What belongs in an API pentest scope behind a proxy?
    level: 2
    url: https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/#what-belongs-in-an-api-pentest-scope-behind-a-proxy
---

# GPUStack CVE-2026-102895: can a proxy bypass authentication?

> How GPUStack before 2.2.0 trusted a local peer or a forwarded address, and which authentication boundaries to include in an API pentest scope.

**A remote request can acquire a local source address after passing through a reverse proxy.** In GPUStack before 2.2.0, a source considered local could grant administrative access without authentication. The [GPUStack advisory for CVE-2026-102895](https://github.com/gpustack/gpustack/security/advisories/GHSA-gj9m-f8ph-pmhr) identifies 2.2.0 as the fixed version and reports exploitation of a 2.1.1 deployment.

This source analysis explains the conditions and the questions to include when scoping a penetration test. rootzero has not reproduced the compromise. The detailed reading below covers the versioned **2.1.1 and 2.2.0** sources, reviewed on 10 November 2026.

## Why can a remote request look like localhost?

A connection through a proxy involves several identities: the original client, the proxy opening the next connection, and the user authenticated by the application. The network peer describes that last connection. It does not establish the identity of the person who initiated the request.

```text
remote client
    |
    v
proxy on the same host
    |
    v
API: network peer = 127.0.0.1
    |
    v
which application identity was actually verified?
```

This diagram represents one possible route. It does not describe every GPUStack installation. The gateway mode then determines which source the code uses.

## Two separate paths in GPUStack 2.1.1

In [`client_ip_getter` from 2.1.1](https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/api/auth.py#L48-L52), `embedded` mode reads `X-GPUStack-Real-IP`. Other modes return the network peer. An arbitrary header therefore does not control this function in every mode.

| Configuration in the 2.1.1 source | Source selected | Effect on the local-source condition |
| --- | --- | --- |
| Non-`embedded` mode, network peer `127.0.0.1` | Peer address | A local proxy can make the condition match |
| Non-`embedded` mode, remote peer, header claiming localhost | Remote peer address | This header alone does not make the condition match |
| `embedded` mode, header claiming localhost | Header value | The condition can match if that value reaches the API |
| `embedded` mode, absent header | Empty string | This function does not fall back to the local peer |

The [following code in `get_current_user`](https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/api/auth.py#L71-L99) handles authentication methods first. If no user has been obtained, a source equal to `127.0.0.1` with `force_auth_localhost` disabled opens the administrative fallback. The account must subsequently pass the active-account check. The [2.1.1 configuration](https://github.com/gpustack/gpustack/blob/11accdf7c7e80c37050f92136335b0516af32bd6/gpustack/config/config.py) defaults this option to `False`.

The table describes branches in the source, not the exposure of a particular system. Effective configuration, origin reachability and transformations at each intermediary still need to be established.

## What changes in the fixed version?

In [`auth.py` from 2.2.0](https://github.com/gpustack/gpustack/blob/c6e6b91d56ce12f3ce7293c56be8a363b7a41618/gpustack/api/auth.py#L64-L130), `get_current_user` no longer contains the localhost administrative fallback. The function reading the address forwarded by the gateway authenticates its token before accepting that information. These changes address separate responsibilities: authenticating the user and establishing network provenance.

Stripping a header at the edge cannot by itself fix the case where a local TCP peer triggers the old fallback. An access check at the proxy can also be bypassed if another route reaches the origin without that check. Review the complete path, including internal access explicitly authorised within the assessment scope.

## Does patching close access already created?

The vendor advisory describes the ability to create persistent administrative API keys and access worker or provider secrets. Closing the vulnerability and investigating earlier access are separate tasks. A proxy log without an obvious anomaly cannot, on its own, establish that no compromise occurred.

For an environment under your responsibility, prepare these actions:

1.  Record the running version and gateway mode, preserving the configuration needed for diagnosis.
2.  Upgrade to a fixed version through the vendor’s procedure. Its temporary mitigations remain dependent on the affected configuration.
3.  Reconstruct routes to the API: proxy, direct access, network restrictions and header handling.
4.  Review unexpected accounts, keys, backends and configuration changes; preserve evidence before recovery.
5.  Where exposure or evidence warrants it, arrange revocation and rotation of affected secrets with the incident-response owner.

The [CISA KEV catalogue](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json) has included this CVE since **9 November 2026**. That addition is distinct from the advisory’s publication on **31 July 2026**. It does not establish the date of first access to any particular installation or a victim count.

## What belongs in an API pentest scope behind a proxy?

Establish which identity actually drives each access decision. A useful check should connect the network route, application identity and expected result in its evidence.

| Scoping question | Input to prepare | Evidence expected within the agreed scope |
| --- | --- | --- |
| Which entry points reach the application? | Diagram of the proxy and authorised origins | Access control covers each agreed route |
| Who can set network provenance? | Header forwarding and replacement rules | A client value does not become a trusted identity |
| What happens without a valid identity? | Test accounts and a protected operation without side effects | The protected operation remains denied behind the proxy |
| Which rights survive a session? | Key inventory and revocation procedure | Persistent access has an owner and a defined end |

Our [API pentest scoping guide](https://spectr-ai.eu/en/pentest-api#kit-cadrage) provides a fictional JSON scope and permission matrix to adapt. Add proxy routes and authentication expectations alongside roles and organisation boundaries. For signed-token implementation errors, continue with [five JWT mistakes and their fixes](https://rootzero.eu/en/research/jwt-five-mistakes/).
