← Back to CVEs
CVE-2026-22708
CRITICAL9.8
Description
Cursor is a code editor built for programming with AI. Prior to 2.3, hen the Cursor Agent is running in Auto-Run Mode with Allowlist mode enabled, certain shell built-ins can still be executed without appearing in the allowlist and without requiring user approval. This allows an attacker via indirect or direct prompt injection to poison the shell environment by setting, modifying, or removing environment variables that influence trusted commands. This vulnerability is fixed in 2.3.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published1/14/2026
Last Modified2/3/2026
Sourcenvd
Honeypot Sightings0
Affected Products
anysphere:cursor
Weaknesses (CWE)
CWE-15CWE-74CWE-77CWE-78CWE-94CWE-269CWE-77
References
https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w(security-advisories@github.com)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.