Description
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.
Published: 2026-09-21
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Cross‑Site Scripting enabling code execution within Warpgate and potential access to user or admin APIs.
Action: Immediate Patch
AI Analysis

Impact

Warpgate is an open‑source bastion host that enables SSH, HTTPS, and MySQL access. In versions prior to 0.25.5, the single‑sign‑on (SSO) workflow accepts a "next" query parameter sent from the provider start endpoint. The value is later embedded directly into the response generated by the return handler without HTML escaping. An attacker that can influence that parameter can craft a link that, when followed by a logged‑in Warpgate user, causes arbitrary HTML and JavaScript to be executed in the user’s browser session. The code runs with the privileges of the authenticated user, allowing the attacker to read session data, invoke user APIs, and, if the victim is an administrator, use administrator‑level APIs.

Affected Systems

The vulnerability affects the warp‑tech:warpgate open‑source bastion host, specifically any release earlier than v0.25.5. The flaw is in the SSO return endpoint of the API, which is part of the warpgate‑protocol‑http source tree. Administrators of any site running a susceptible version should apply the patch or upgrade immediately.

Risk and Exploitability

The flaw scores a CVSS of 9.3, indicating a high severity with complete network exposure. The EPSS score is not available, so the current exploitation probability cannot be quantified, but the lack of a KEV listing suggests no widespread public exploitation yet. The likely attack vector is a remote web‑based exploit; an adversary can deliver a malicious link that an active Warpgate user follows, leading to reflected XSS and an open redirect. An attacker who succeeds can hijack the victim’s session and gain API access, including privileged actions if the victim holds admin rights.

Generated by OpenCVE AI on September 21, 2026 at 20:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Warpgate to version 0.25.5 or later, where the "next" parameter is sanitized and the redirect behaviour is fixed.
  • If an upgrade cannot be performed immediately, restrict or remove the "next" query parameter from the SSO flow by using an application firewall or reverse‑proxy that filters the parameter.
  • Review any custom SSO redirect logic to ensure it does not allow arbitrary destinations or script injection.

Generated by OpenCVE AI on September 21, 2026 at 20:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 21 Sep 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Warp-tech
Warp-tech warpgate
Vendors & Products Warp-tech
Warp-tech warpgate

Mon, 21 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Warpgate: Reflected XSS in SSO return endpoint via attacker-controlled next parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'}


Subscriptions

Warp-tech Warpgate
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T18:48:03.982Z

Reserved: 2026-06-30T20:21:25.812Z

Link: CVE-2026-58491

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-21T19:17:06.910

Modified: 2026-09-21T19:17:06.910

Link: CVE-2026-58491

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T21:30:11Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')