Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105772 Overview
CVE-2026-105772 is a path traversal vulnerability [CWE-22] in the FileArtifactService component of the Google Agent Development Kit (ADK) for TypeScript, published as @google/adk. The flaw affects versions 0.4.0 through versions prior to 0.6.0. A remote unauthenticated attacker can read files matching the artifact directory layout or write files outside the intended artifact storage root. Exploitation uses crafted relative or percent-encoded traversal sequences such as ../ or ..%2F in the userId or sessionId parameters. The issue applies only when the ADK API server is exposed with the non-default FileArtifactService enabled. Applications relying on the default InMemoryArtifactService are not affected.
Critical Impact
Unauthenticated attackers can read or write arbitrary files within the host filesystem reachable from the ADK process, potentially leading to data exposure, agent manipulation, or follow-on code execution.
Affected Products
- Google ADK TypeScript (@google/adk) versions 0.4.0 through 0.5.x
- Deployments that explicitly enable FileArtifactService on an exposed ADK API server
- Agent tools invoking saveArtifact under the vulnerable service
Discovery Timeline
- 2026-10-20 - CVE-2026-105772 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-105772
Vulnerability Analysis
The vulnerability resides in FileArtifactService, which persists agent artifacts to the local filesystem. The service builds storage paths by concatenating a configured root directory with the request-provided userId and sessionId values. These values flow directly into path.join without validating that the resulting path remains inside the artifact storage root. Attackers can supply crafted segments to break out of the root and reach arbitrary filesystem locations.
Because the ADK API server accepts these parameters without authentication in default exposures, remote attackers can trigger artifact read, list, or write operations against paths outside the intended directory. When an agent tool invokes saveArtifact, attacker-controlled traversal sequences enable writing attacker content to arbitrary files, including configuration files or scripts loaded by other processes.
Root Cause
The root cause is missing input validation on path segments passed to filesystem operations. The pre-patch getUserRoot helper joined rootDir, the literal users, and the user-supplied userId with no character allowlist and no containment check against the resolved root. Percent-encoded sequences like ..%2F also decoded into traversal characters at the HTTP layer.
Attack Vector
The attack is network-reachable and requires no authentication. An attacker sends an HTTP request to the ADK API server targeting the artifact endpoints and supplies traversal sequences inside the userId or sessionId parameters. The service resolves the manipulated path and performs the read, list, or write operation outside the artifact root.
// Patch from core/src/artifacts/file_artifact_service.ts (CVE-2026-105772 fix)
// Source: https://github.com/google/adk-js/commit/8c0eaa160a43c1d791d5838a5de6ac87d905cf70
const SAFE_SEGMENT_RE = /^[a-zA-Z0-9_@-][a-zA-Z0-9_.@-]{0,255}$/;
export function assertSafeSegment(value: string, label: string): void {
if (!value || !SAFE_SEGMENT_RE.test(value)) {
throw new Error(
`[FileArtifactService] Invalid ${label}: value contains disallowed characters.`,
);
}
}
export function assertInsideRoot(
resolvedPath: string,
rootDir: string,
label: string,
): void {
const root = path.resolve(rootDir);
const resolved = path.resolve(resolvedPath);
if (!resolved.startsWith(root + path.sep) && resolved !== root) {
throw new Error(
`[FileArtifactService] ${label} escapes storage root. Resolved: ${resolved}, Root: ${root}`,
);
}
}
export function getUserRoot(rootDir: string, userId: string): string {
// ... safe path construction follows
}
The patch introduces a strict character allowlist via SAFE_SEGMENT_RE and a assertInsideRoot containment check that rejects any resolved path escaping the configured storage root.
Detection Methods for CVE-2026-105772
Indicators of Compromise
- HTTP requests to ADK artifact endpoints containing ../, ..\, %2e%2e%2f, or ..%2F sequences in userId or sessionId parameters.
- Unexpected files written outside the configured artifact root, especially in directories owned by the ADK process user.
- Error log entries from FileArtifactService after upgrade indicating Invalid userId or paths that escapes storage root.
- Access attempts targeting known-sensitive paths such as /etc/, home directories, or application configuration directories through artifact URLs.
Detection Strategies
- Inspect application and reverse-proxy logs for traversal patterns in request URIs targeting ADK artifact routes.
- Add Web Application Firewall rules to flag percent-encoded traversal sequences in query and path components of /artifacts/ endpoints.
- Monitor the @google/adk package version in software bill of materials to flag any deployment still on 0.4.x or 0.5.x.
Monitoring Recommendations
- Enable filesystem auditing (for example auditd on Linux) on the artifact storage parent directory to catch writes outside the expected subtree.
- Alert on process-level file writes by the ADK runtime user to paths outside the configured root directory.
- Track outbound and lateral activity from hosts running ADK to detect follow-on actions after a successful write.
How to Mitigate CVE-2026-105772
Immediate Actions Required
- Upgrade @google/adk to version 0.6.0 or later across all services and agent runtimes.
- If upgrade is not immediately possible, switch to the default InMemoryArtifactService, which is not affected.
- Remove public network exposure of the ADK API server and place it behind authenticated reverse proxies.
- Audit the artifact storage root and surrounding filesystem for unexpected files created during the exposure window.
Patch Information
The fix is tracked in GitHub Pull Request #210 and applied in commit 8c0eaa160a43c1d791d5838a5de6ac87d905cf70. Full advisory details are published as GHSA-8hc4-6xx6-3rh3. The patch adds assertSafeSegment and assertInsideRoot validators that enforce a strict character allowlist and verify the resolved path remains within the configured storage root.
Workarounds
- Revert to the default InMemoryArtifactService for applications that do not require persistent artifacts.
- Enforce authentication and network restrictions on the ADK API server so unauthenticated remote callers cannot reach artifact endpoints.
- Apply upstream input validation at a reverse proxy to reject any request containing traversal characters in userId or sessionId parameters.
# Upgrade to the patched release
npm install @google/adk@^0.6.0
# Verify the installed version
npm ls @google/adk
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

