Skip to content

OS command injection when opening terminal links from WSL

High
Legoben published GHSA-xmw3-wj6r-48m4 Jun 9, 2026

Package

Warp

Affected versions

>=v0.2024.03.12.08.02.stable_01

Patched versions

v0.2026.05.13.09.15.stable_01

Description

Description

Affected Warp versions via affected WSL builds contain an OS command injection vulnerability in the WSL URL-opening fallback. When Warp is running under WSL and cannot open a URL through wslview, it falls back to a Windows command processor path. A URL controlled through terminal output can reach that fallback when the user opens the link.

Impact

Successful exploitation may allow commands to run on the Windows host as the current Windows user. Exploitation requires user interaction: the user must open a malicious link displayed in Warp. The issue affects WSL configurations where wslview is unavailable and the user has not opted into opening links through the WSL browser path. Native macOS, native Windows, non-WSL Linux sessions, WSL sessions with working wslview, and WSL sessions with WARP_FORCE_WSL_BROWSER set are not affected by this command path.

Patch

The patch parses and validates URLs before handing them to the Windows opener, allows only http and https schemes, uses the parser's serialized URL form, and replaces the command-processor fallback with a Windows URL handler invocation.

Workarounds

Install wslu so wslview is available, or set WARP_FORCE_WSL_BROWSER=1 to avoid the Windows-host fallback. Users should still update to a patched Warp build.

Credits

Thanks to the following reporter who responsibly disclosed this issue:

  • Manav Howal

References

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

CVE ID

CVE-2026-54699

Weaknesses

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. Learn more on MITRE.

Improper Encoding or Escaping of Output

The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved. Learn more on MITRE.

Credits