CVE-2026-58491 Details
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.
A reflected cross-site scripting vulnerability has been identified in Warpgate, an open-source SSH, HTTPS, and MySQL bastion host for Linux, prior to version 0.25.5. The issue arises in the single sign-on (SSO) login flow, where the '/@warpgate/api/sso/providers/:name/start' endpoint accepts an attacker-controlled 'next' query parameter. This parameter is reflected, unescaped, into the response by the 'POST /@warpgate/api/sso/return' handler. As a result, an attacker can execute arbitrary JavaScript in the context of the victim's authenticated Warpgate session. The vulnerability also creates an open redirect, allowing for phishing attacks.
Users can update to Warpgate version 0.25.5, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 21, 2026CISA-ADP
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/warp-tech/warpgate/commit/eab0548f018d95b5f96f8e913527000e05ed93a2 | [email protected] | Source CodeVendor |
| https://github.com/warp-tech/warpgate/releases/tag/v0.25.5 | [email protected] | Release NotesVendor |
| https://github.com/warp-tech/warpgate/security/advisories/GHSA-3c3w-75j2-7h74 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| WarpGate | 0.25.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | CVE Modified | CISA-ADP |
| Sep 21, 2026 | New CVE Received | [email protected] |
Volerion