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