惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
J
Java Code Geeks
S
SegmentFault 最新的问题
L
LangChain Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 叶小钗
美团技术团队
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How to Check if You're Affected by CVE-2026-26268 in Curs...
Armor1 · 2026-05-10 · via DEV Community

Armor1

CVE-2026-26268 is a CVSS 8.1 high-severity vulnerability in the Cursor AI IDE that lets a malicious repository execute arbitrary code on a developer's machine the moment Cursor's agent performs a Git operation against it. There is no prompt injection, no user click, and no warning dialog. The agent's normal bootstrap flow is sufficient to trigger execution.

The bug is patched in Cursor 2.5. Every version prior to 2.5 is affected.

How the Mechanism Works

Cursor's agent operates with significant autonomy inside a workspace. When you open a new project, the agent indexes the codebase, summarizes structure, offers to set up the dev environment, and performs Git operations as part of that bootstrap.

The vulnerability allows a repository to ship a .git/hooks/ configuration containing arbitrary shell commands. Git hooks are scripts that Git executes at specific points in the workflow (pre-commit, post-checkout, post-merge, etc.). When Cursor's agent triggers any Git operation that fires one of these hooks, the hook script runs with the developer's process privileges.

Critically:

  1. No human typed git commit. The agent did.
  2. No trust dialog appeared. The hook ran during a normal agent operation.
  3. No prompt injection was needed. The agent was not subverted; it was performing its standard workflow.

How to Check if You Are Affected

1. Check your Cursor version

from inside Cursor: Help -> About

Or from terminal:

cursor --version

2. If output is < 2.5, you are running a vulnerable version.

If you have ever opened an unfamiliar repository in Cursor on a pre-2.5 version, treat the developer environment as potentially compromised. Specifically:

Audit Git hooks in any recently-opened workspace

cd /path/to/workspace
ls -la .git/hooks/

Anything not ending in .sample (the default Git template files) is custom.

Inspect the contents of every non-.sample file.

cat .git/hooks/post-checkout 2>/dev/null
cat .git/hooks/pre-commit 2>/dev/null
cat .git/hooks/post-merge 2>/dev/null

How to Fix

  1. Update Cursor to 2.5 or later. From inside Cursor, choose Help -> Check for Updates. The fix landed in version 2.5; every version before that is vulnerable.
  2. Audit any unfamiliar repos you opened on a pre-2.5 version. If you opened a repo from an unknown source while running 2.4 or earlier, inspect its .git/hooks/ directory for custom scripts before reopening it.
  3. Rotate credentials reachable from the developer environment if you have reason to believe a malicious workspace was opened. Session tokens, API keys, and any credentials cached in environment variables or local config files are in scope.
  4. For team installations, push Cursor 2.5 fleet-wide and confirm uptake through your MDM or distribution channel.

How Armor1 Detects This

Armor1's Client Catalog evaluates AI coding clients across 16 risk categories. Two of those categories are directly relevant to CVE-2026-26268:

  1. Script Hooks: measures whether the client runs hook scripts from workspace-controlled locations without independent user confirmation. Cursor versions before 2.5 surface as a high-risk posture in this category. The catalog reflects the structural feature, not just the disclosed CVE, which means similar vulnerabilities in the same class would surface even before they receive a CVE assignment.
  2. Execution Approval Controls: measures whether sensitive operations require user-visible approval before execution. An agent that performs Git operations on a fresh workspace without an approval gate is, by definition, exposed to this attack pattern.

For developer fleets running multiple AI IDEs, the catalog inventories every AI coding client in scope and tracks the version-to-risk mapping across the fleet.

Armor1's free public catalog covers the per-server MCP risk picture. The full agentic stack scan covers every app, MCP, tool, skill, and plugin across your environment.

Check the risk of any MCP server in your environment with Armor1's free public catalog

To cover every agentic app, MCP, tool, skill, and plugin across your stack, sign up free Here