Description
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.
Published: 2026-09-21
Score: 2.4 Low
EPSS: n/a
KEV: No
Impact: Content Spoofing
Action: Apply Patch
AI Analysis

Impact

Warpgate, an open‑source SSH/HTTPS/MySQL bastion host, contains a markup injection flaw in its form_post SSO return page. The vulnerable code serializes redirect parameters and IdP error messages into JavaScript without neutralizing script‑closing characters, allowing an attacker to inject arbitrary markup into the page. The result is content spoofing – a false login form or meta refresh – because the configured Content‑Security‑Policy blocks actual JavaScript execution. The flaw does not provide code execution or data exfiltration, and has a low CVSS score of 2.4.

Affected Systems

The issue affects warp-tech WarpGate deployments running any version earlier than v0.27.6. Users running v0.27.6 or newer are not impacted.

Risk and Exploitability

The CVSS score of 2.4 suggests low severity, and the EPSS score is not available, indicating no known high exploitation probability. Though the vulnerability is listed in no KEV catalog, it requires an attacker to influence an identity provider’s redirect URL or attacker‑controlled user claims, and the victim must complete the form_post SSO flow for the injected markup to render. These constraints make exploitation difficult and context‑specific. Nonetheless, the lack of active mitigation and potential for social engineering or compromised IdPs introduce a moderate risk for environments that rely heavily on SSO.

Generated by OpenCVE AI on September 21, 2026 at 20:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade WarpGate to version 0.27.6 or newer to eliminate the markup injection flaw.
  • Configure only trusted identity providers and validate the redirect URLs they supply, rejecting or sanitizing any that contain untrusted or attacker‑controlled parameters.
  • Ensure that all redirect and error URLs are properly URL‑encoded before they are inserted into web pages to prevent markup injection.
  • Maintain a strict Content‑Security‑Policy that blocks inline scripts and event handlers to mitigate any residual injected content.

Generated by OpenCVE AI on September 21, 2026 at 20:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 21 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Warp-tech
Warp-tech warpgate
Vendors & Products Warp-tech
Warp-tech warpgate

Mon, 21 Sep 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 21 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Warpgate: Markup injection in SSO form_post return page via unencoded redirect/error values
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 2.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N'}


Subscriptions

Warp-tech Warpgate
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T19:26:22.695Z

Reserved: 2026-09-14T21:20:41.196Z

Link: CVE-2026-91165

cve-icon Vulnrichment

Updated: 2026-09-21T19:26:19.097Z

cve-icon NVD

Status : Received

Published: 2026-09-21T19:17:15.190

Modified: 2026-09-21T20:17:39.473

Link: CVE-2026-91165

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T20:45:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')