Skip to content

CVE-2026-49446 Cosmos: Authentication bypass via forward-auth header smuggling on Constellation tunnel in Cosmos-Server

MediumCVSS 6.1 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
azukaar github.com/azukaar/cosmos-server(Go) < 0.22.19; <= 0.22.18 0.22.19 Fixed
azukaar github.com/azukaar/cosmos-server = < 0.22.19 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
azukaar github.com/azukaar/cosmos-server(Go) < 0.22.19 0.22.19
azukaar github.com/azukaar/cosmos-server = < 0.22.19 No fix listed
azukaar github.com/azukaar/cosmos-server(Go) <= 0.22.18 No fix listed

References