---
id: CVE-2026-58491
title: 'Warpgate is an open source SSH, HTTPS and MySQL bastion host for Linux'
summary: >-
  Warpgate is an open source SSH, HTTPS and MySQL bastion host for Linux. Prior
  to 0.25.5, the /@warpgate/api/sso/providers/:name/start endpoint stores an
  attacker-controlled next parameter that the POST /@warpgate/api/sso/return
  handler i…
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'
cwe:
  - CWE-79
vendor: warp-tech
product: warpgate
affected:
  - warpgate < 0.25.5
published: '2026-09-21'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:25:27.050'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-58491'
references:
  - url: >-
      https://github.com/warp-tech/warpgate/commit/eab0548f018d95b5f96f8e913527000e05ed93a2
    label: security-advisories@github.com
  - url: 'https://github.com/warp-tech/warpgate/releases/tag/v0.25.5'
    label: security-advisories@github.com
  - url: >-
      https://github.com/warp-tech/warpgate/security/advisories/GHSA-3c3w-75j2-7h74
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
epss: 0.00458
epssPercentile: 0.37024
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-22T14:20:46.826766Z'
ingestedAt: '2026-09-21T19:51:58.859Z'
---

## Overview

Warpgate is an open source SSH, HTTPS and MySQL bastion host for Linux. Prior to 0.25.5, the /@warpgate/api/sso/providers/:name/start endpoint stores an attacker-controlled next parameter that the POST /@warpgate/api/sso/return handler inserts without HTML escaping into the response generated by warpgate-protocol-http/src/api/sso_provider_list.rs. A victim who follows a crafted link and completes SSO can cause markup and JavaScript to execute in the authenticated Warpgate origin, allowing access to session data and actions through user APIs, and through administrator APIs only when the victim is an administrator. The GET /@warpgate/api/sso/return path also uses the same unvalidated value as a redirect destination, enabling an open redirect. This issue is fixed in version 0.25.5.

## Remediation

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