Skip to content

fix: prevent macOS clipboard path injection in osascript call#2

Merged
starmorph merged 1 commit intomainfrom
cursor/critical-bug-inspection-6895
Mar 9, 2026
Merged

fix: prevent macOS clipboard path injection in osascript call#2
starmorph merged 1 commit intomainfrom
cursor/critical-bug-inspection-6895

Conversation

@cursor
Copy link

@cursor cursor bot commented Mar 9, 2026

Fixes a command-injection vector in macOS clipboard support by passing image paths to osascript as argv instead of interpolating into AppleScript source. Adds a regression test to ensure user-supplied paths are never embedded in script text.

Open in Web View Automation 

Co-authored-by: Dylan Boudro <starmorph@users.noreply.github.com>
@starmorph starmorph marked this pull request as ready for review March 9, 2026 02:59
@starmorph starmorph merged commit a5b5abf into main Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants