Vulnerability · Published Jul 23, 2026 · Assigned by VulnCheck
CVE-2026-65896Grav API Plugin before 1.0.10 Path Traversal via move
High 7.1
In plain English
A high-severity security flaw in grav from getgrav. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities).
Official description
Grav API Plugin (Composer package getgrav/grav-plugin-api) before 1.0.10 fails to properly validate the slug field in the POST /pages/{route}/move endpoint. PagesController::move() sanitizes the slug only with ltrim($body['slug'], '.'), which strips leading periods but does not neutralize '/' or '..' segments. An authenticated API caller with the api.pages.write permission can supply path traversal sequences (e.g., 01.home/../../../pwned) to move an entire page directory (content and media) to an arbitrary writable location outside user/pages/, including outside the Grav installation.
Affected products (as reported)
Weakness: CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
References
- GitHub Security Advisory (GHSA-qjq4-jp55-4mx2) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: Grav API Plugin before 1.0.10 Path Traversal via move third-party-advisory