CVE
CVE-2026-58491
Warpgate: Reflected XSS in SSO return endpoint via attacker-controlled next parameter
Severity
Critical
Base CVSS
9.3
Fixed in
eab0548f018d95b5f96f8e913527000e05ed93a2
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/ssoproviderlist.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.
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
Critical
9.3
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
OSV
0
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Endor Labs
Required action
Known ransomware campaign use
References
https://github.com/warp-tech/warpgate/releases/tag/v0.25.5, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58491.json, https://github.com/warp-tech/warpgate/security/advisories/GHSA-3c3w-75j2-7h74, https://nvd.nist.gov/vuln/detail/CVE-2026-58491, https://github.com/warp-tech/warpgate/commit/eab0548f018d95b5f96f8e913527000e05ed93a2
Basic information
Base CVSS
9.3
EPSS probability
0.0
EPSS percentile
0.27983
Introduced version
0
Fix available
eab0548f018d95b5f96f8e913527000e05ed93a2
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.