CVE-2026-65896
Grav API Plugin (Composer package getgrav/grav-plugin-api) before …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/getgrav/grav/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd
- github.com/getgrav/grav/security/advisories/GHSA-qjq4-jp55-4mx2
- www.vulncheck.com/advisories/grav-api-plugin-before-path-traversal-via-move
- github.com/getgrav/grav-plugin-api/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd
- nvd.nist.gov/vuln/detail/CVE-2026-65896
- cve.org/CVERecord?id=CVE-2026-65896
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.