CVE-2026-48731 Warp: Linux external editor command injection

High 7.8 Published Updated

Attackers can execute arbitrary shell commands by tricking users into opening malicious file paths in Warp's Linux external editor.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-48731?

CVE-2026-48731 is a high-severity command injection vulnerability in warpdotdev warp, published on 24 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Warp is an agentic development environment. From 0.2024.02.20.08.01.stable_01 until 0.2026.05.06.15.42.stable_01, Warp contains a command injection issue in the Linux external editor launcher. Warp expanded freedesktop .desktop Exec templates for affected editor integrations and executed the expanded command through a shell. A user who opens an attacker-controlled local file path through an affected external editor or system-default editor route can cause shell syntax embedded in that path to execute as the local user. This vulnerability is fixed in 0.2026.05.06.15.42.stable_01.

Weakness: CWE-78

Which versions are affected by CVE-2026-48731?

How do I fix CVE-2026-48731?

No fix has been published for CVE-2026-48731 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-48731 being exploited?

There is no known exploitation of CVE-2026-48731 in the wild and no public exploit code.

Sources

Also known as GHSA-7xgc-mhc8-g7wc.

Is CVE-2026-48731 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free