Keystatic through 0.6.9 Path Traversal via Local Mode API Prefix Bypass
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 16, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 16, 2026
Description
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.
| Product | Versions |
|---|---|
| Keystatic Thinkmill | 0.6.9 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 5.6 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/Thinkmill/keystatic/issues/1669Issue Tracker
- https://github.com/Thinkmill/keystatic/blob/b65d4a55501dc3b7bb268dc925d8538a8a9f8e95/packages/keystatic/src/api/api-node.ts#L129-L135Technical Details
- VulnCheck Advisory: Keystatic through 0.6.9 Path Traversal via Local Mode API Prefix BypassThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.