7.1highHigh
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.
What the metrics mean
- It is reachable over a network, without needing local access.
- For an attacker who can reach it, no special conditions are needed to exploit it.
- To exploit it, an ordinary user account is needed.
- Beyond that, no action by a user is required.
Scoring
- CVSS
- 7.1 (v3.1)
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L- CVSS v4
- 7.1
- Weakness
- CWE-73
- Assigned by
- disclosure@vulncheck.com
Dates
- Published
- 2026-07-23
- Last modified
- 2026-08-28
- Sources
- NVD
References
- https://github.com/getgrav/grav-plugin-api/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd
- https://github.com/getgrav/grav/security/advisories/GHSA-qjq4-jp55-4mx2
- https://www.vulncheck.com/advisories/grav-api-plugin-before-path-traversal-via-move
- https://github.com/getgrav/grav/security/advisories/GHSA-qjq4-jp55-4mx2