HIGH 8.6

CVE-2026-48721: Warp CLI Agent Command Denylist Bypass

Warp, an AI-assisted development environment, contains a security flaw that allows attackers to bypass safety restrictions on dangerous commands. The vulnerability exists because Warp's non-interactive CLI agent checks whether commands are 'blocked' before properly handling environment variables at the start of command strings. An attacker who can control what the agent outputs—such as through a compromised repository or malicious input—can craft commands that evade the safety denylist. This could allow execution of commands that normally require user confirmation. The flaw affects versions from October 2025 through early May 2026 and is patched in the May 2026 release.

Source data · NVD / CISA · public domain

CVSS
3.1 · 8.6 HIGH · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weaknesses (CWE)
CWE-180, CWE-693
Affected products
0 configuration(s)
Published / Modified
2026-06-24 / 2026-06-25

NVD description (verbatim)

Warp is an agentic development environment. From 0.2025.10.08.08.12.stable_00 until 0.2026.05.06.15.42.stable_01, Warp contains a command execution permission-check bypass in the default unsandboxed CLI agent profile. The CLI profile is non-interactive and relies on a command denylist as a safety boundary for commands that should require confirmation. Because command strings were checked before canonicalizing leading environment-variable assignments, an attacker who can influence the agent's command output may cause denylisted commands to be treated as non-denylisted. This vulnerability is fixed in 0.2026.05.06.15.42.stable_01.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

This vulnerability exploits a command validation flaw in Warp's unsandboxed CLI agent. The agent enforces safety through a command denylist that restricts commands requiring explicit user confirmation. The vulnerability arises from a canonicalization bypass: command strings are validated against the denylist before environment-variable prefixes are resolved. An attacker controlling the agent's command input can prepend environment-variable assignments (e.g., VAR=value denylisted_command) that cause the denylist check to pass, even though the denylisted command executes after variable assignment. This affects the default unsandboxed profile, which is non-interactive by design. The fix, released in version 0.2026.05.06.15.42.stable_01, canonicalizes command strings before denylist evaluation.

Business impact

For development teams using Warp as a primary development environment, this vulnerability creates supply-chain and privilege-escalation risks. If an agent processes untrusted command suggestions—whether from compromised repositories, malicious pull requests, or external integrations—an attacker could execute restricted commands like password managers, credential exporters, or destructive operations without user awareness. The non-interactive nature of the CLI agent means users may not notice unusual command execution. In shared development environments or CI/CD pipelines integrating Warp agents, this could lead to credential theft, code tampering, or lateral movement.

Affected systems

Warp versions 0.2025.10.08.08.12.stable_00 through 0.2026.05.06.15.42.stable_00 are vulnerable. The flaw specifically impacts the default unsandboxed CLI agent profile; sandboxed profiles or interactive terminal use are not affected. Users on versions prior to October 2025 or at version 0.2026.05.06.15.42.stable_01 and later are not vulnerable.

Exploitability

Exploitation requires an attacker to influence the agent's command output, making this an indirect attack vector. Realistic scenarios include: (1) a developer cloning a repository containing malicious .warp or agent-config files, (2) a compromised integration that suggests poisoned commands, or (3) a malicious code-completion suggestion from a third-party AI model. The attack does not require network access or special privileges—only the ability to shape input to the Warp agent. CVSS 8.6 (HIGH) reflects local attack surface, user interaction (opening/running commands), but high impact across confidentiality, integrity, and availability.

Remediation

Immediate action: update Warp to version 0.2026.05.06.15.42.stable_01 or later. This patch resolves the canonicalization bypass by validating commands after environment-variable resolution. Until patching is complete, disable or avoid the unsandboxed CLI agent profile if handling untrusted input; use sandboxed profiles or interactive mode instead. Review recent agent command execution logs for suspicious patterns such as unexpected environment-variable prefixes or unusual denylisted commands.

Patch guidance

Warp users should upgrade to version 0.2026.05.06.15.42.stable_01 or later. Verify availability through Warp's official download page or package manager (if applicable). Organizations using Warp in automated or CI/CD contexts should prioritize patching, as the agent runs without interactive prompts. Test the patched version in a non-production environment first to confirm compatibility with existing workflows.

Detection guidance

Monitor Warp agent execution logs (if accessible in your deployment) for commands prefixed with environment-variable assignments (e.g., commands starting with VAR=value followed by denylisted operations). Look for agent activity that appears to execute restricted commands without corresponding user confirmation. Review repositories or integrations supplying commands to the agent for signs of tampering. Consider implementing file-integrity monitoring on .warp configuration or agent-suggestion files.

Why prioritize this

This vulnerability should be prioritized for patching in the next maintenance cycle, particularly for teams integrating Warp agents into development workflows or processing untrusted input (e.g., code reviews, open-source contributions). While the attack requires indirect influence over agent input, the high CVSS score and potential for credential compromise in a development context justify expedited remediation.

Risk score, explained

CVSS 8.6 reflects: (1) Local attack vector—attacker must influence agent input on a developer's machine; (2) Low complexity—simple environment-variable prefix injection; (3) No privileges or high user interaction required; (4) High impact to confidentiality (credential leakage), integrity (code tampering), and availability (destructive commands). The unsandboxed design and non-interactive nature elevate risk, as users may not notice command execution.

Frequently asked questions

Does this affect interactive Warp terminal usage?

No. The vulnerability is specific to the unsandboxed CLI agent profile, which is non-interactive. Standard interactive terminal use in Warp is not affected.

What if I'm using a sandboxed Warp profile?

Sandboxed profiles are not vulnerable to this issue. If your configuration uses sandboxing, you are not at risk from this bypass.

How can I tell if my organization was exploited?

Review Warp agent execution logs for commands with environment-variable prefixes (VAR=value syntax) followed by denylisted operations, or for denylisted commands executing without user confirmation. Also audit recent repository changes and integrations supplying suggestions to the agent.

If I update to the latest version, do I need to do anything else?

After updating, no further action is required for this vulnerability. Monitor logs as described above to ensure the patch is working as expected, and consider reviewing any repositories or integrations that influence agent commands.

This analysis is provided for informational purposes and reflects information available as of the publication date. Users should verify patch availability and version numbers against official Warp vendor advisories before deploying updates. No exploit code or weaponized proof-of-concept is provided. Security teams should conduct internal risk assessment based on their own Warp deployment architecture and threat model. Source: NVD (public-domain), retrieved 2026-08-02. Analysis generated by SEC.co (claude-haiku-4-5).