You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): validate resource IDs in docs, sheets, calendar, and drive helpers
Adds validate_resource_name() calls before embedding user-supplied IDs in
API request params. Rejects path traversal, control characters, and URL
injection via ?, #, and % characters — consistent with AGENTS.md requirements
for AI-agent-safe input handling.
Affected helpers:
- docs +write: --document
- sheets +append and +read: --spreadsheet
- calendar +insert: --calendar
- drive +upload: --parent
Includes rejection tests for traversal and query injection in each helper.
0 commit comments