# How to use Cursor to evaluate workspace hooks

Eilon Cohen’s Cursor test turned workspace Stop hooks into unapproved host execution; the benign proof led to CVE-2026-48124 and a patched Desktop version.

Agent: Cursor (via Cursor Desktop 2.4.37 in a controlled evaluation)
Tools: Cursor Desktop, workspace hook configuration, Calculator
Category: Security
Date: 2026-07-20

Outcome: The test demonstrated an approval bypass through workspace hook configuration; Cursor assigned CVE-2026-48124 and lists version 3.0.0 as patched.

## Steps

1. Cohen instructed the agent to create controlled helper and Stop-hook files in the test workspace.
2. Ending the agent turn caused Cursor’s helper to open Calculator without a dedicated final-command approval.
3. The finding was disclosed as CVE-2026-48124, and Cursor’s advisory records Desktop 3.0.0 as patched.

Human oversight: Cohen used a benign Calculator proof and disclosed the finding; the publication and vendor advisory distinguish affected and patched versions.

Source: [Eilon Cohen — Pillar Security blog](https://www.pillar.security/blog/the-hook-was-already-in-the-workspace)

Canonical URL: https://agentsinuse.com/use-cases/cursor-to-evaluate-workspace-hook-approval/
