Skip to content
CriticalVulnerability

GHSA-47wq-cj9q-wpmp: Paperclip: Cross-tenant agent API token minting via missing assertCompanyAccess on /api/agents/:id/keys

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

Summary

The Paperclip agent routes POST, GET and DELETE on /api/agents/:id/keys (server/src/routes/agents.ts, lines 2050-2087) call only assertBoard and never assertCompanyAccess, so any authenticated board user can mint a plaintext pcp_* agent API token for an agent in any company. The token is bound to the victim agent's companyId, which lets an attacker perform operations inside the victim tenant. The same assertBoard-only pattern appears on the pause, resume, terminate and delete agent handlers.

Mitigation

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