{"id":"CVE-2026-91165","aliases":["CVE-2026-91165"],"related":[],"kind":"vulnerability","state":"published","title":"Warpgate: Markup injection in SSO form_post return page via unencoded redirect/error values","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-21T18:53:03.854Z","modified":"2026-09-24T21:25:27.050Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","score":2.4,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N","score":2.4,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 0.27.6","status":"affected"}],"vendor":"warp-tech","product":"warpgate","source":"cvelist"}],"references":[{"url":"https://github.com/warp-tech/warpgate/security/advisories/GHSA-vvpj-p7j8-4rv4","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/warp-tech/warpgate/commit/e94425a08f501383a67316673749dcbd637c6ce3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/warp-tech/warpgate/releases/tag/v0.27.6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-21T19:26:11.810Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91165","url":"https://www.cve.org/CVERecord?id=CVE-2026-91165","licence":"CVE Terms of Use","modified":"2026-09-21T19:26:22.695Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91165","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91165","licence":"Public domain","modified":"2026-09-24T21:25:27.050Z"}],"updatedAt":"2026-11-25T22:59:40.370Z","epss":{"score":0.00228,"percentile":0.1445,"date":"2026-12-01T12:00:22.000Z"}}