Warpgate: Markup injection in SSO form_post return page via unencoded redirect/error values
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Warpgate is an open source SSH, HTTPS and MySQL bastion host for Linux. Prior to 0.27.6, the response_mode=form_post SSO return path in warpgate-protocol-http/src/api/sso_provider_list.rs uses serde_json::to_string inside ReturnToSsoPostResponse without neutralizing a script-closing sequence. The vulnerable value can enter the script block through the attacker-controlled next redirect parameter stored by warpgate-protocol-http/src/api/sso_provider_detail.rs or through IdP-derived error messages that make_redirect_url concatenates without URL encoding. The IdP-derived path is reachable when the attacker controls a configured identity provider, or when the attacker controls the email or username claim on an attacker-controlled account and the configured identity provider permits the required unvalidated claim format. A victim must complete the form_post SSO flow for the injected markup to be rendered. The Warpgate Content-Security-Policy blocks injected JavaScript and event handlers, so the demonstrated impact is content spoofing, a false login form, or a meta refresh rather than script execution. This issue is fixed in version 0.27.6.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA warpgate (warp-tech) Fixed in 0.27.6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-91165
References
More warp-tech vulnerabilities
- TI-2023-18898 User login confusion with SSO in warpgate CVSS 3.1HIGH 8.8
- TI-2026-30510 Russh: Pre-auth DoS via unbounded allocation in keyboard-interactive auth CVSS 3.1HIGH 7.5
- TI-2024-29059 Russh has an OOM Denial of Service due to allocation of untrusted amount CVSS 3.1HIGH 7.5
- TI-2026-45163 Improper authorization in warp-tech warpgate CVSS 3.1HIGH 7.7
- TI-2026-32313 Warpgate: SSO CSRF -- State Token Not Validated on Return CVSS 3.1MEDIUM 6.5
- TI-2025-34558 Russh is missing an overflow check during channel windows adjust CVSS 3.1MEDIUM 6.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences