Skip to content
CriticalVulnerability

GHSA-vr7g-88fq-vhq3: Paperclip: OS Command Injection via Execution Workspace cleanupCommand

Published
Record updated
View JSON
Affected
  • @paperclipai/server < 2026.416.0
Fixed in
2026.416.0

Summary

Paperclip AI v2026.403.0 contains an OS command injection flaw in the Execution Workspace lifecycle (workspace-runtime.ts). The PATCH /api/execution-workspaces/:id endpoint stores an arbitrary cleanupCommand without validation, and the server later runs it through spawn(shell, ["-c", cleanupCommand]) when the workspace is archived. In local_trusted mode, which is the default for desktop installations, exploitation requires no authentication, and the commands run with the privileges of the Paperclip server process.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.