Appsecure logo

CVE-2026-22708: High Vulnerability in AnySphere Cursor

A high-severity vulnerability in AnySphere Cursor allows attackers to execute shell commands without authorization. Organizations should patch to version 2.3 immediately to mitigate risks associated with this vulnerability.

HIGHCVSS 7.2 · Published January 14, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2026-22708 is a high-severity vulnerability found in AnySphere's code editor, Cursor. This vulnerability allows an attacker to execute shell built-ins while the Cursor Agent is running in Auto-Run Mode with Allowlist mode enabled. Specifically, prior to version 2.3, certain commands could be executed without appearing in the allowlist and without requiring user approval. This weakness enables attackers to manipulate the shell environment by setting, modifying, or removing environment variables that influence trusted commands. The vulnerability has been addressed in version 2.3.

The severity of this vulnerability is classified as high, with a CVSS score of 7.2. The attack vector is network-based, and the complexity of the attack is considered high. This means that while exploitation may require specific conditions, the impact can be significant, affecting confidentiality, integrity, and availability. Organizations utilizing Cursor should prioritize remediation efforts to mitigate potential risks.

The urgency for organizations is critical, given the potential impact of this vulnerability. Attackers may leverage this weakness to execute unauthorized commands that could compromise the system. Therefore, organizations should prioritize patching immediately.

As of now, there is no known public exploit, but the potential for exploitation exists given the nature of the vulnerability. It is essential to monitor any developments related to this CVE.

Vulnerability Details

The official description of the vulnerability states that the Cursor Agent, when in Auto-Run Mode with Allowlist mode enabled, can still execute certain shell built-ins. This behavior can lead to unauthorized command execution through indirect or direct prompt injection. The vulnerability is identified as CWE-15 (External Control of System or Configuration Setting), CWE-74 (Injection), CWE-77 (Command Injection), CWE-78 (OS Command Injection), CWE-94 (Code Injection), and CWE-269 (Privilege Escalation).

The CVSS score for this vulnerability is 7.2, indicating a high level of severity. The vulnerability was published on January 14, 2026, and was last modified on February 3, 2026.

Technical Analysis

The root cause of this vulnerability lies in the improper handling of shell commands within the Cursor environment. Attackers can exploit this by injecting commands that manipulate the environment variables, which could lead to unexpected behavior in trusted commands. The attack vector is network-based, meaning that the exploit can be executed remotely. The attack complexity is high, requiring specific conditions to be met for successful exploitation.

In terms of privilege requirements, none are needed for an attacker to exploit this vulnerability, and user interaction is also not required. The impacts of a successful exploit include high confidentiality, integrity, and availability impacts, making this a serious concern for organizations.

Risk & Impact Analysis

The real-world deployment risk is significant for organizations using the Cursor application. Given the high severity of the vulnerability, the potential for unauthorized access and command execution could lead to severe compromises within the affected systems. The blast radius could extend to any environment where Cursor is used, especially in critical infrastructure or sensitive data environments.

Organizations should assess their current deployment of Cursor and the urgency of addressing this vulnerability is high due to the CVSS score of 7.2. Immediate actions should be taken to apply the patch provided in version 2.3 to mitigate these risks.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The affected version of the Cursor application is any version prior to 2.3. Organizations should ensure they upgrade to version 2.3 or later to mitigate this vulnerability.

Mitigation & Remediation

To mitigate this vulnerability, organizations should immediately update to Cursor version 2.3 or later. If a patch is unavailable, organizations can implement workarounds such as disabling Auto-Run Mode or Allowlist mode until the update can be applied. Additionally, configuration hardening should be assessed, and network controls should be in place to limit exposure. Monitoring for unauthorized command execution should also be prioritized.

For further security measures, organizations may consider engaging in continuous penetration testing to identify similar vulnerabilities.

Detection Guidance

Organizations should monitor logs for indicators of unauthorized command execution, including any unexpected changes to environment variables. Behavioral anomalies associated with the Cursor application should also be tracked, especially those indicating shell command execution. Network signatures related to command execution attempts should be analyzed for detection.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2026-22708 highlights the ongoing risks associated with code execution vulnerabilities, particularly in development tools that integrate AI. This incident represents a pattern of vulnerabilities that may arise from the increasing reliance on automation in coding environments. Security teams should learn from this case to bolster their defenses against similar weaknesses.

For insights on strengthening your security posture, consider reviewing our resources on vulnerability management programs and best practices in penetration testing methodology to prevent similar vulnerabilities in the future.

Additionally, exploring our guide on API security testing can enhance your understanding of securing development tools.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.