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

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-09-21T18:48:03.982Z
- Modified: 2026-09-24T21:25:27.050Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## 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>

## Sources

- CVE List: [CVE-2026-58491](https://www.cve.org/CVERecord?id=CVE-2026-58491), CVE Terms of Use, modified 2026-09-22
- NVD: [CVE-2026-58491](https://nvd.nist.gov/vuln/detail/CVE-2026-58491), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-58491 · Whole record: https://cve.day/CVE-2026-58491.json · Rebuilt by cve.day 2026-11-25T22:59:40.367Z
