CVE-2026-22708: Cursor has a Terminal Tool Allowlist Bypass via Environment Variables

Published Jan 14, 2026
·
Updated

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.

Affected Software

2 affected components
Cursor Cursor<2.3
anysphere Cursor<2.3

Event History

Jan 14, 2026
CVE Published
via MITRE·04:43 PM
Data Sourced
via MITRE·04:43 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Oct 28, 58065
Event
via FIRST·03:36 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-22708?

CVE-2026-22708 has been classified as a high severity vulnerability due to its potential to bypass security controls.

2

How do I fix CVE-2026-22708?

To mitigate CVE-2026-22708, upgrade the Cursor software to version 2.3 or later, where the vulnerability has been addressed.

3

What impact does CVE-2026-22708 have on my system?

CVE-2026-22708 allows unauthorized execution of certain shell built-ins, which could lead to potential security breaches.

4

In which versions of Cursor is CVE-2026-22708 present?

CVE-2026-22708 affects versions of Cursor prior to 2.3.

5

What is the nature of the allowlist bypass in CVE-2026-22708?

CVE-2026-22708 enables the execution of specified commands that are not included in the allowlist when the Cursor Agent is in Auto-Run Mode.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203