---
id: CVE-2026-49446
title: >-
  Cosmos provides users the ability self-host a home server by acting as a
  secure gateway to your application, as well as a server manager
summary: >-
  Cosmos provides users the ability self-host a home server by acting as a
  secure gateway to your application, as well as a server manager. Prior to
  0.22.19, tokenMiddleware in src/proxy/routerGen.go can return through the
  Constellation tu…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-285
  - CWE-290
vendor: azukaar
product: Cosmos-Server
affected:
  - Cosmos-Server < 0.22.19
patched:
  - github.com/azukaar/cosmos-server 0.22.19
published: '2026-09-15'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T15:17:16.747'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-49446'
references:
  - url: >-
      https://github.com/azukaar/Cosmos-Server/commit/59c561d686c8f9843b3e092b50f6346c481d8bbf
    label: security-advisories@github.com
  - url: 'https://github.com/azukaar/Cosmos-Server/releases/tag/v0.22.19'
    label: security-advisories@github.com
  - url: >-
      https://github.com/azukaar/Cosmos-Server/security/advisories/GHSA-2rx5-2g7j-2659
    label: security-advisories@github.com
  - url: >-
      https://github.com/azukaar/Cosmos-Server/security/advisories/GHSA-2rx5-2g7j-2659
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-2rx5-2g7j-2659'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-15T14:50:32.130417Z'
aliases:
  - GHSA-2rx5-2g7j-2659
ecosystem: go
ingestedAt: '2026-07-28T21:39:18.398Z'
epss: 0.00299
epssPercentile: 0.20165
---

## Overview

Cosmos provides users the ability self-host a home server by acting as a secure gateway to your application, as well as a server manager. Prior to 0.22.19, tokenMiddleware in src/proxy/routerGen.go can return through the Constellation tunnel bypass before removing x-cosmos-user, x-cosmos-role, x-cosmos-user-role, and x-cosmos-mfa headers and before invoking AdminOnlyWithRedirect. An attacker with a valid x-cstln-auth API key for an enrolled device who reaches Cosmos through the Constellation Nebula tunnel can supply a chosen x-cosmos-user value to a route with AuthEnabled enabled when the upstream application trusts that forward-auth header. The request can bypass Cosmos JWT, password, MFA, and AdminOnly checks, allowing user impersonation and admin-tier reads or writes exposed by the proxied application. This issue is fixed in version 0.22.19.

## Remediation

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

## Package advisory (CVE-2026-49446)

Affected packages:

- `github.com/azukaar/cosmos-server <= 0.22.18`

Patched in:

- `github.com/azukaar/cosmos-server 0.22.19`

Source: https://github.com/advisories/GHSA-2rx5-2g7j-2659
