Severity:

HIGH RISK

(8.8)

Indirect Prompt Injection Leading to OS Command Execution (CWE-78) in Cursor AI Code Editor

CVE-2026-31854

Published:

Status:

Analyzed

Summary

Affected Context

Exploit Preconditions

Why This Happens

Potential Impact

General Mitigation Guidance

How Teams Detect Issues Like This

Frequently Asked Questions

Source

NDV

Vulnerability Type

Vulnerability Type

Category:

AI-Assisted Command Injection

CWE:

CWE-78

Impact:

Unintended OS Command Execution via AI Agent

Severity:

HIGH RISK

(8.8)

CVSS Version:

3.1

Vulnerability Type

Category:

AI-Assisted Command Injection

CWE:

CWE-78

Impact:

Unintended OS Command Execution via AI Agent

Severity:

HIGH RISK

(8.8)

CVSS Version:

3.1

Catch This CVE While Code Is Being Written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.