Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

toeverything/affine
canary @ 57c5bac
125
Fixes
2
CVEs
HIGH
Peak severity
51.4%
Coverage
Highlights
Auth Bypass: 70 prior fixes. Scrutinize any change in this area.
packages/backend/server/src/core/auth/controller.ts: most-fixed (5 issues). Treat as high-risk during review.
70 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: The application heavily relies on WebSockets for real-time collaborative editing. Failing to enforce document-level read/write permission validations directly inside the WebSocket gateway handlers allows unauthorized actors to intercept or tamper with private workspace document synchronization.
Sandbox Escape: Custom URL handlers and schema registrations (such as custom file handlers in Electron) bypassed standard protocol boundaries and allowed path traversal. This directly leads to local file access or remote execution via arbitrary command handshakes, as demonstrated in CVE-2026-21853.
Server-Side Request Forgery: The backend features automated metadata fetching services. Without strict DNS resolution checks that validate and block private IP subnets before establishing connections, attackers can abuse these capabilities to probe or interact with internal cloud metadata services and localhost infrastructure.