{"id":"CVE-2025-54130","state":"PUBLISHED","title":"Cursor Agent is vulnerable prompt injection via Editor Special Files","description":"Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions less than 1.3.9. If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive editor files, such as the .vscode/settings.json file don't already exist in the workspace, an attacker can chain a indirect prompt injection vulnerability to hijack the context to write to the settings file and trigger RCE on the victim without user approval. This is fixed in version 1.3.9.","publishedAt":"2025-08-05T00:12:28.632Z","updatedAt":"2025-08-05T13:57:58.596Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["cursor cursor"],"affected":[{"vendor":"cursor","product":"cursor","versions":[{"version":"< 1.3.9","status":"affected"}]}],"references":["https://github.com/cursor/cursor/security/advisories/GHSA-vqv7-vq92-x87f"],"weaknesses":["CWE-285"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/54xxx/CVE-2025-54130.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-54130","state":"PUBLISHED","datePublished":"2025-08-05T00:12:28.632Z","dateUpdated":"2025-08-05T13:57:58.596Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-07-16T23:53:40.509Z"},"containers":{"cna":{"title":"Cursor Agent is vulnerable prompt injection via Editor Special Files","descriptions":[{"lang":"en","value":"Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions less than 1.3.9. If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive editor files, such as the .vscode/settings.json file don't already exist in the workspace, an attacker can chain a indirect prompt injection vulnerability to hijack the context to write to the settings file and trigger RCE on the victim without user approval. This is fixed in version 1.3.9."}],"affected":[{"vendor":"cursor","product":"cursor","versions":[{"version":"< 1.3.9","status":"affected"}]}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-vqv7-vq92-x87f","name":"https://github.com/cursor/cursor/security/advisories/GHSA-vqv7-vq92-x87f","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-285","lang":"en","description":"CWE-285: Improper Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-08-05T00:12:28.632Z"},"source":{"advisory":"GHSA-vqv7-vq92-x87f","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-05T13:57:48.252186Z","id":"CVE-2025-54130","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-05T13:57:58.596Z"}}]}}}