Skip to content
MediumVulnerability

GHSA-9mph-4f7v-fmvh: OpenClaw has agent avatar symlink traversal in gateway session metadata

Published
Record updated
View JSON
Affected
  • openclaw < 2026.2.22
Fixed in
2026.2.22
  • released February 22, 2026, 9 days before disclosure

Summary

A crafted local avatar path in OpenClaw's gateway can follow a symlink outside the agent workspace and return arbitrary file contents as a base64 data: URL. The flaw sits in resolveIdentityAvatarUrl in src/gateway/session-utils.ts, affects the openclaw npm package from v2026.1.21 through 2026.2.21-2, and allows local file read in the gateway process, which agents.list can return as avatarUrl.

Mitigation

Resolve workspace and avatar paths with realpath and enforce realpath containment. Open files with O_NOFOLLOW when available. Compare pre-open and opened file identity (dev/ino) to block swap races. Add regression tests for outside-workspace symlink rejection and in-workspace symlink allowance. Planned patched version: 2026.2.22.