Technical impact
Keystatic versions up to 0.6.9 contain a path traversal flaw in the getIsPathValid function. The flaw enables an attacker to send specially crafted HTTP requests that bypass the expected directory prefix checks. By targeting the blob, update, and tree handlers under /api/keystatic with a no-cors header, an unauthenticated remote attacker can read, create, overwrite, or delete any file that shares a content directory name prefix, such as posts-evil/pwn.yaml. This capability exposes the content repository to tampering, accidental deletion, and potential injection of malicious content.
Affected Systems
The vulnerability affects installations of the Thinkmill Keystatic framework through version 0.6.9. No versions newer than 0.6.9 are known to be affected, and the issue is specific to the Local Mode API exposed by Keystatic.
Risk and Exploitability
The CVSS score of 6.3 classifies the weakness as moderately severe. Exploitation requires only unauthenticated HTTP access to the API endpoints, and the EPSS score is not available; the vulnerability is not listed in the CISA KEV catalog. Attackers can remotely manipulate the site’s file system through the API, making the risk noteworthy for public-facing deployments.