Vulnerability in github.com/azukaar/cosmos-server
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-49446 has been found in github.com/azukaar/cosmos-server.
Attackers can target a specific entry point like tokenMiddleware over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.1/10.
What to do: upgrade github.com/azukaar/cosmos-server to 0.22.19 or later.
If unsure, ask your IT team or search "github.com/azukaar/cosmos-server CVE-2026-49446" on the vendor's site.
CVE-2026-49446 (github.com/azukaar/cosmos-server) — CWE-285 / CVSS v3 6.1
Attack vector: adjacent-network / no user interaction
Attack surface: tokenMiddleware / AdminOnlyWithRedirect / master / AdminOnly
Patched: 0.22.19 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-285) exists in github.com/azukaar/cosmos-server. Attackers reach the vulnerable code path via tokenMiddleware.
Check the vendor advisory for the affected versions of github.com/azukaar/cosmos-server. Attack surface: tokenMiddleware / AdminOnlyWithRedirect / master / AdminOnly.
Severity: Medium (CVSS 6.1/10). Confidential information can be exposed externally.
Update to 0.22.19.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/azukaar/cosmos-server' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/azukaar/cosmos-server' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/azukaar/cosmos-serverを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade github.com/azukaar/cosmos-server to 0.22.19ステージング環境で 0.22.19 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/azukaar/cosmos-server |
< 0.22.19→ 0.22.19 |
0.22.19 |
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com