Skip to content

fix: harden builder upload YAML validation#5344

Open
TristanInSec wants to merge 1 commit intogoogle:mainfrom
TristanInSec:harden-builder-yaml-validation
Open

fix: harden builder upload YAML validation#5344
TristanInSec wants to merge 1 commit intogoogle:mainfrom
TristanInSec:harden-builder-yaml-validation

Conversation

@TristanInSec
Copy link
Copy Markdown

Summary

  • Reject fully-qualified (dotted) Python references in builder YAML uploads
  • Covers name, agent_class, and code fields
  • Simple (non-dotted) names continue to work (ADK built-in tools, built-in agent classes)
  • Adds 6 tests covering rejection and allowlisting behavior

Test plan

  • Dotted tool name rejected (e.g. os.system)
  • Dotted agent_class rejected
  • Dotted code reference rejected
  • Simple tool name allowed (e.g. google_search)
  • Simple agent_class allowed (e.g. LlmAgent)
  • Existing builder tests unaffected

Reject fully-qualified (dotted) Python references in builder YAML
uploads for name, agent_class, and code fields.  Simple (non-dotted)
names continue to work for ADK built-in tools and agent classes.

Adds 6 tests covering rejection and allowlisting behavior.
@adk-bot adk-bot added the web [Component] This issue will be transferred to adk-web label Apr 15, 2026
@adk-bot
Copy link
Copy Markdown
Collaborator

adk-bot commented Apr 15, 2026

Response from ADK Triaging Agent

Hello @TristanInSec, thank you for creating this PR!

To help us track and contextualize this important security fix, could you please create a GitHub issue that describes the vulnerability and link it to this PR?

This will help us maintain a clear record of the issue and its resolution. Thanks!

@TristanInSec
Copy link
Copy Markdown
Author

Created #5347.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web [Component] This issue will be transferred to adk-web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants