Security context

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

microsoft/magentic-ui
main @ b1eb5d3
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
src/magentic_ui/backend/teammanager/teammanager.py: most-fixed (1 issue). Treat as high-risk during review.
2 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.

Path Traversal: Inconsistent home-directory resolution during host-path validation can allow attackers to map prohibited directories into the sandbox in environments like WSL. Ensure all mounting and path validation functions consistently resolve host paths before enforcing boundaries.
Path Traversal: Performing path validation checks prior to executing `os.path.expanduser` or similar canonicalization steps allows attackers to bypass denylist validations using relative or user-home shortcuts. All path resolutions must be fully canonicalized before validation checks occur.