Security context

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

tailcallhq/forgecode
main @ fbd5972
22
Fixes
0
CVEs
HIGH
Peak severity
52.6%
Coverage
Highlights
Denial of Service: 12 prior fixes. Scrutinize any change in this area.
crates/forge_app/src/tool_registry.rs: most-fixed (2 issues). Treat as high-risk during review.
9 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.

Denial of Service: Multi-byte UTF-8 string slicing on invalid boundaries can trigger remote panic-driven crashes during JSON schema repair. Slicing logic must always utilize safe character boundary iteration rather than raw byte offsets.
Auth Bypass: Wrapping security check routines inside execution timeout logic can bypass authorization guards entirely if the check triggers a timeout, executing unauthorized tasks.
Path Traversal: Filesystem operations in tool modules are vulnerable to directory traversal if relative paths are processed. Forcing validation to strictly allow only absolute paths protects critical host structures.