# CVE-2026-58491: Warpgate: Reflected XSS in SSO return endpoint via attacker-controlled next parameter

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 0.25.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-21 · Modified: 2026-09-22
- Record: https://cvemate.com/vulnerability/CVE-2026-58491 · JSON: https://cvemate.com/vulnerability/CVE-2026-58491/json

## Description

```text
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.
```

## Signals

- CVSS: 9.3 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- EPSS: 0.328%, percentile 27.934%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- warp-tech warpgate: \< 0.25.5

## References

- <https://github.com/warp-tech/warpgate/security/advisories/GHSA-3c3w-75j2-7h74>
- <https://github.com/warp-tech/warpgate/commit/eab0548f018d95b5f96f8e913527000e05ed93a2>
- <https://github.com/warp-tech/warpgate/releases/tag/v0.25.5>

---

Data as of 2026-12-05T14:32:49.770Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
