Security context

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

bytedance/ui-tars-desktop
main @ e9f3387
5
Fixes
0
CVEs
HIGH
Peak severity
20.0%
Coverage
Highlights
Information Disclosure: 2 prior fixes. Scrutinize any change in this area.
multimodal/agent-tars/core/src/filesystem/filesystem-tools-manager.ts: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

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

CSRF: Lack of anti-forgery guards could allow external web origins to make unauthorized state-changing requests to the agent server API. Implementing rigorous CORS origin checks and session CSRF hooks is essential.
Path Traversal: Workspace directory parameters are vulnerable to path traversal attacks if paths are not canonicalized and validated against a strictly defined base directory. This can expose sensitive host system configurations.
Information Disclosure: Upstream model provider API keys and secrets configured on the backend can leak to the frontend if configuration structures are not recursively sanitized before serialization.