CVE-2026-129944: Keystatic through 0.6.9 Path Traversal via Local Mode API Prefix Bypass
Keystatic through 0.6.9 contains a path traversal vulnerability in the getIsPathValid function that allows unauthenticated remote attackers to access sibling paths sharing a content directory name prefix. Attackers can send requests with a no-cors header to the blob, update, and tree handlers under /api/keystatic to read, create, overwrite, or delete files such as posts-evil/pwn.yaml.
Affected Software
Event History
Frequently Asked Questions
Which deployments should be treated as exposed?
Deployments using npm/@keystatic/core through 0.6.9 that make the Local Mode API handlers reachable under /api/keystatic should be treated as exposed.
Does exploitation require an authenticated user or browser interaction?
No. The issue is described as exploitable by unauthenticated remote attackers, with no user interaction required. Requests use a no-cors header against the affected handlers.
Which operations and handlers are involved?
The blob, update, and tree handlers under /api/keystatic are affected. An attacker may read, create, overwrite, or delete files in sibling paths whose names share a configured content-directory prefix, such as posts-evil/pwn.yaml.