Vulnerability in Getgrav Grav
CVE-2026-65896
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L.
EPSS exploit prediction
EPSS 0.003, 25.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Getgrav Grav — versions 0, 1.0.10
Weakness classification (CWE)
References
- github.com/getgrav/grav/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd (patch)
- GitHub Security Advisory (GHSA-qjq4-jp55-4mx2) (vendor-advisory)
- VulnCheck Advisory: Grav API Plugin before 1.0.10 Path Traversal via move (third-party-advisory)
- Patch Commit (patch)