Security context

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

google/adk-python
main @ 1b030dc
69
Fixes
0
CVEs
CRITICAL
Peak severity
16.7%
Coverage
Highlights
Denial of Service: 24 prior fixes. Scrutinize any change in this area.
src/google/adk/sessions/database_session_service.py: most-fixed (5 issues). Treat as high-risk during review.
28 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.

Code Execution: User-supplied or LLM-generated filenames interpolated directly into executable Python code templates without proper escaping allowed arbitrary code execution. Avoid using string formatting on dynamically sourced filenames in code templates; use repr() or safe parameterization instead.
Remote Code Execution: Parsing untrusted YAML configurations with safe_load_all was vulnerable to code execution when payloads contained blocked keys such as 'args'. Strict schema and field denylisting is required on any dynamic configuration parser.
Path Traversal: File-handling APIs and YAML builders allowed traversal across directory boundaries via raw path concatenation. Implement strict canonicalization and prefix verification to confine file operations to a designated root directory.